I have this method for hashing a string:
byte[] buffer = enc.GetBytes(text); SHA1CryptoServiceProvider cryptoTransformSHA1 = new SHA1CryptoServiceProvider(); string hash = BitConverter.ToString( cryptoTransformSHA1.ComputeHash(buffer)).Replace("-", ""); return hash;
My question is:
Is the resulting hash always the same for the same string?
I wrote a couple of days ago, and it seems that now it has led to another hash, but I'm not sure.
source share