Convert ASP.NET function code to PHP

Dibatalkan Dipasang Feb 14, 2014 Dibayar saat pengiriman
Dibatalkan Dibayar saat pengiriman

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

ASP PHP Visual Basic

ID Proyek: #5433368

Tentang proyek

2 proposal Proyek online Aktif Feb 15, 2014

2 freelancer rata-rata menawar $13 untuk pekerjaan ini

VikashThecoder

A proposal has not yet been provided

$15 USD dalam 0 hari
(9 Ulasan)
4.9
SCKRamana

I am ready to converted PHP 5 Code. Lebih banyak

$10 USD dalam 0 hari
(0 Ulasan)
0.0