Convert Python to PHP

Zamknięty Opublikowano Jun 13, 2014 Płatność przy odbiorze
Zamknięty Płatność przy odbiorze

I need this function translated from Python to PHP:

(Must be supported by PHP 5.3.

####################################################################################################

def getMediaDecryptedPathString(strToDecrypt,type):

ds1 = ""

if type == "LIVE":

decryptor = [url removed, login to view](DECRYPTION_KEY_LIVE1, pyaes.MODE_ECB, IV='')

ds1 = [url removed, login to view]([url removed, login to view]("hex")).replace('\x00', '')

if ds1[:4] == "rtmp": return ds1

else:

decryptor = [url removed, login to view](DECRYPTION_KEY_LIVE2, pyaes.MODE_ECB, IV='')

ds1 = [url removed, login to view]([url removed, login to view]("hex")).replace('\x00', '')

if ds1[:4] == "rtmp": return ds1

if type == "VIDEO":

decryptor = [url removed, login to view](DECRYPTION_KEY1, pyaes.MODE_ECB, IV='')

ds1 = [url removed, login to view]([url removed, login to view]("hex")).replace('\x00', '')

if ds1[:4] == "rtmp": return ds1

else:

decryptor = [url removed, login to view](DECRYPTION_KEY2, pyaes.MODE_ECB, IV='')

ds1 = [url removed, login to view]([url removed, login to view]("hex")).replace('\x00', '')

if ds1[:4] == "rtmp": return ds1

return ds1

####################################################################################################

First to tell me that they have a tested working example, get the job.

DECRYPTION_KEY1 = "1233901199002223000111A2"

DECRYPTION_KEY2 = "9685647821298987483258Z8"

type = "VIDEO"

strToConvert = 'b676bae72a72b34ba88e5764956a833bf692f824ab06f8f720cbcb721e706df2f6fbf1fb1a42b6e85260247d44c5b1451cc16793d8c12fa7a5180f54f50b28a043ccae28aba2734cc1fe21ce74868c24';

PHP Python

Numer ID Projektu: #6065119

O projekcie

6 ofert Zdalny projekt Aktywny Jul 20, 2014

6 freelancerów złożyło ofertę za $25 w tym projekcie

nSolutionsPL

Nie złożono jeszcze oferty.

$23 USD w ciągu 0 dni
(17 Oceny)
4.9
brij2103

Hi, I am an experienced in native PHP,Zend(1,2),CI,Laravel,jQuery. -Python(Django) -core Java Repository: GIT,SVN : brij420 (skype) Coding Style:- -System design , database design and documentation -Develo Więcej

$30 USD w ciągu 0 dni
(1 Ocena)
2.9
xtorch

A proposal has not yet been provided

$20 USD w ciągu 5 dni
(0 Oceny)
0.0
kaushikkoneru

A proposal has not yet been provided

$25 USD w ciągu 1 dnia
(0 Oceny)
0.0