Convert Python to PHP
$10-30 USD
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';
ID Proyek: #6065119
Tentang proyek
6 freelancer rata-rata menawar $25 untuk pekerjaan ini
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