3
I am using the Cryptsharp library to generate password in MD5. I had read that MD5 generates string with hexadecimals of 32 characters but is generating 34 and with several types of characters.
It’s generating in this format:
$1$gSUz3sUo$mFPQB05MAMhFokOSydON91
Searching saw that there are some different formats of MD5. This starts with these $ in the first three characters.
My code using the library is this:
public string Codifica(string senha)
{
return Crypter.MD5.Crypt(senha);
}
Anyone who has used this library knows if there is a parameter that can leave my password encoded in 32 characters?
Since 2008 MD5 and' considered Broken and unsafe. Currently, it is recommended to use SHA-256 to create secure hashes.
– dcastro