SHA1 Plain text? C#.NET -


I am using C # and calculating SHA1 for the string. My question is, will it always produce plain text 0-1 and A-Z? Or will it be born with special characters? I mean that the ComputeHash function will always return plain text?

  SHA1CryptoServiceProvider sha1 = New SHA1CryptoServiceProvider (); Value received string = bit corner Toasting (sha1.ComputeHash (to_be_hash)). Change ("-", "");   

Not sure, but I think it should only generate special characters, if its base is changed to 64.

This is a hex string, so only 0-9 and the Air Force.

Actually this is just a byte array, but you use the string bitcounger. ToString (byte []) to separate it from a pair of two in a hex-string Method for - (Dash).

Hexadecimal includes only: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, F. 16 options, two pairs of them will represent single byte (16 * 16 = 2 ^ 8 = 256, is a byte).

Comments