teapear Posted March 17, 2010 Share Posted March 17, 2010 hello.. i have problem to convert .net code to php... below is .net code.. 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 thank you... Link to comment https://forums.phpfreaks.com/topic/195545-convert-net-to-php/ Share on other sites More sharing options...
trq Posted March 17, 2010 Share Posted March 17, 2010 And the problem is? Link to comment https://forums.phpfreaks.com/topic/195545-convert-net-to-php/#findComment-1027489 Share on other sites More sharing options...
teapear Posted March 17, 2010 Author Share Posted March 17, 2010 the problem is.. i want above code in php coding... Link to comment https://forums.phpfreaks.com/topic/195545-convert-net-to-php/#findComment-1027490 Share on other sites More sharing options...
trq Posted March 17, 2010 Share Posted March 17, 2010 Were not hear to write code for people. Have you looked through the php manual to see if there are equivalent functions? I would start there. Link to comment https://forums.phpfreaks.com/topic/195545-convert-net-to-php/#findComment-1027494 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.