I want to convert a Secure Password in secure hashcode. best method?
like: SHA1,MD5 and any combination ?
string str ="Krishna";
Output:"!#$!$ASDFAS@#$%@";
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
There are different ways to create a random piece of data that can be used for salting. The most common ones are:
GuidtypeRNGCryptoServiceProviderclassTo create a new random GUID, we invoke the
NewGuidmethod on theGuidtype. Once generated, we simply append the salt to the string to be encrypted.For creating a random string of digits by using the
RNGCryptoServiceProviderclass, we first initialize a provider and abytearray, and then invoke theGetBytesmethod on our provider instance.The following code is a modified version of the previous snippet to demonstrate salting.