Convert Python to PHP

Ditutup Dipasang Jun 13, 2014 Dibayar saat pengiriman
Ditutup Dibayar saat pengiriman

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

ID Proyek: #6065119

Tentang proyek

6 proposal Proyek online Aktif Jul 20, 2014

6 freelancer rata-rata menawar $25 untuk pekerjaan ini

nSolutionsPL

Nie złożono jeszcze oferty.

$23 USD dalam 0 hari
(17 Ulasan)
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 Lebih banyak

$30 USD dalam 0 hari
(1 Ulasan)
2.9
xtorch

A proposal has not yet been provided

$20 USD dalam 5 hari
(0 Ulasan)
0.0
kaushikkoneru

A proposal has not yet been provided

$25 USD dalam 1 hari
(0 Ulasan)
0.0