Jump to content

convert .NET to php


teapear

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.