Convert ASP.NET function code to PHP
$10-30 USD
Pagado a la entrega
Task is to convert this ASP.NET function into PHP5 compatible code. I have provided a sample encrypted string that you can use to test your PHP code. Lowest bid will get the job, this is easy I just can't be bothered.
decrypt this string "s9FJB7lQTGkk1Lz6KoKfw5qSsuubEqq5" using key "free1234"
Private key() As Byte = {}
Private IV() As Byte = {&H12, &H34, &H56, &H78, &H90, &HAB, &HCD, &HEF}
Public Function Decrypt(ByVal stringToDecrypt As String, _
ByVal sEncryptionKey As String) As String
Dim inputByteArray([url removed, login to view]) As Byte
Try
key = [url removed, login to view](Left(sEncryptionKey, 8))
Dim des As New [url removed, login to view]()
inputByteArray = base64_decode(stringToDecrypt)
Dim ms As New [url removed, login to view]()
Dim cs As New [url removed, login to view](ms, [url removed, login to view](key, IV), _
[url removed, login to view])
[url removed, login to view](inputByteArray, 0, [url removed, login to view])
[url removed, login to view]()
Dim encoding As [url removed, login to view] = [url removed, login to view]
Return [url removed, login to view]([url removed, login to view]())
Catch e As Exception
Return [url removed, login to view]
End Try
End Function
Nº del proyecto: #5433368