Can anyone help me with this
Public Shared 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
I want to convert the above .NET to PHP. Thanks
.NET to PHP Hash
Moderator: General Moderators
Re: .NET to PHP Hash
Code: Select all
sha1($string);