salted md5 hash

  • Thread starter Thread starter Sýfýrýncý Murat
  • Start date Start date
S

Sýfýrýncý Murat

How can I get hash value for a specified string with specified salt? There
are some md5 implementations under System.Security.Crptography but I could
not find anything about salted md5 algorithm.
 
Try the
FormsAuthentication.HashPasswordForStoringInConfigFile method.

This does not salt the string. So you need to salt the string before creating the hash and then store the salt along with the hashed pwd for retrival.
 
thank you, it was a good pointer tor start from.

another question : that method generates long hash values, i do not know the
name of the format but i need shorter hashes, is there any option for this?


Rakesh Rajan said:
Try the
FormsAuthentication.HashPasswordForStoringInConfigFile method.

This does not salt the string. So you need to salt the string before
creating the hash and then store the salt along with the hashed pwd for
retrival.
 
ok, that might be a better idea but i just have to use md5.

I'm using a Serv-u FTP software on a server. Serv-u stores user passwords in
an ini file, with salted md5 encryption. I'm trying to implement an
automated system to create user accounts and this system will append new
account informaiton at the end of the serv-u ini file. The details of the
encryption and manually entering user info to the ini file are explained
here :

http://rhinosoft.com/KBArticle.asp?RefNo=1177&prod=su


This is the reason why i want to use salted MD5. Although the example in the
above link uses a long hash value, the actual ini file contains shorter ones
like ermm.. Here try the salted md5 algorithm at this link
http://www.n3dst4.com/network/crypter . Try hashing 12345678 with salt "ab".
The product is "ab1iBa.N.U2C6" which is in the form I have been looking for.
The MD5 hash is "5d55ad283aa400af464c76d713c07ad" but I'm not looking for
this.
 
maybe you can use int.Parse() to parse each byte of the string (2 digits are one hex byte) and put all resulting numbers in a byte[] array then use Convert.ToBase64CharArray() to convert it to the form you want.
 
Back
Top