473,398 Members | 2,188 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

What would I declare hashedPassword, please?

In the following, please, what would I declare 'hashedPassword' as?

Expand|Select|Wrap|Line Numbers
  1. cmd.Parameters.AddWithValue("@username", username)
  2.             cmd.Parameters.AddWithValue("@strEmail", email)
  3.             Dim hashedPassword = Crypto.HashPassword(password)
  4.             cmd.Parameters.AddWithValue("@hashed", hashedPassword)
  5.             connection.Open()
  6.             cmd.ExecuteNonQuery()
Thank you.

Blue
Sep 6 '18 #1
2 1885
zmbd
5,501 Expert Mod 4TB
The value returned is a String type cast
Crypto.HashPassword Method Syntax
Expand|Select|Wrap|Line Numbers
  1. 'Declaration
  2. Public Shared Function HashPassword ( _
  3.     password As String _
  4. ) As String
  5. 'Usage
  6. Dim password As String 
  7. Dim returnValue As String 
  8.  
  9. returnValue = Crypto.HashPassword(password)
Parameters
passwordType: System.String
The password to generate a hash value for.

Return Value
Type: System.String
The hash value for password as a base-64-encoded string.
Sep 8 '18 #2
Many thanks for that zmbd!
Nov 16 '18 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

35
by: wired | last post by:
Hi, I've just taught myself C++, so I haven't learnt much about style or the like from any single source, and I'm quite styleless as a result. But at the same time, I really want nice code and I...
2
by: James | last post by:
I have a problem using VS .NET 2003. When compiliing my application (a Content Management Server) I get the following error: "Satellite build for culture 'en-US' failed. Assembly linker could...
5
by: TrvlOrm | last post by:
Can any one please help me...I am new to JavaScript and I have been struggling with this code for days now and can't figure it out. I would like to get the Buttons to correspond with the action...
33
by: bissatch | last post by:
Hi, I fully understand the purpose of an alt attribute within a <img> tag but why would you use a title or summary attribute within, for example, a <p> tag. I have read books recommending that I...
1
by: Andrew | last post by:
Hi, friends, In a VC# user control, I have a TreeView control, which has its property ImageList = TreeViewImageList control. All images are added into this TreeViewImageList control, and...
4
by: steroche | last post by:
I would REALLY appreciate help please please please! Im sure it is probably blindingly obvious to most of you but I am totally in the dark here!I am lost - i thought i had finally figured out this...
10
by: muchexie | last post by:
i have developed a log in system which is a starting point for my online learning system i'm developing. i'm failing to log in possibly the system is not able to register a user as a valid user.The...
2
by: Ruslan A Dautkhanov | last post by:
Hello ! I'm about to install O9i on FreeBSD box. uname -a: FreeBSD stat2.scn.ru 5.2.1-RELEASE-p3 FreeBSD 5.2.1-RELEASE-p3 #2: Fri Apr 23 19:19:43 KRAST 2004...
2
by: gabielmatos | last post by:
this is my query; string NPI = fields.GetValue(0).ToString(); string EntiType = fields.GetValue(1).ToString(); string ProvLastNameLegal = ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.