Can someone please confirm what the output of this function is:
VB code:
Imports System.Security.Cryptography
Private Function ComputeHash(ByVal Key As String) As String
Dim objSHA1 As New SHA1CryptoServiceProvider
objSHA1.ComputeHash(System.Text.Encoding.UTF8.GetBytes(Key.ToCharArray))
Dim buffer() As Byte = objSHA1.Hash
Dim HashValue As String = System.Convert.ToBase64String(buffer)
Return HashValue
End Function
When the value "SENTRYORD01154321SENTRYORD01154321" is passed in.
Also, can anyone confirm if the SHA1CryptoServiceProvider.ComputeHash bit is using 28-bit SHA-1 encryption or something else?
Thanks.