Convert ASP.NET function code to PHP

Cancelado Publicado Feb 14, 2014 Pagado a la entrega
Cancelado 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

ASP PHP Visual Basic

Nº del proyecto: #5433368

Sobre el proyecto

2 propuestas Proyecto remoto Activo Feb 15, 2014

2 freelancers están ofertando un promedio de $13 por este trabajo

VikashThecoder

A proposal has not yet been provided

$15 USD en 0 días
(9 comentarios)
4.9
SCKRamana

I am ready to converted PHP 5 Code. Más

$10 USD en 0 días
(0 comentarios)
0.0