pathToOpenSSL = 'C:\\pysrc\\openssl\\openssl.exe'
openssl = Popen([pathToOpenSSL, 'enc', '-aes-128-cbc', '-d', '-nosalt',
    '-nopad', '-K', privateKey.encode('hex'), '-iv', privateKey.encode(
    'hex')], stdin=PIPE, stdout=PIPE)
decryptedString = openssl.communicate(encryptedString)[0].replace('\x04', '')
return decryptedString
decrypt(encryptedString, 'yohoyohoyohoyoho')
Accessing php $_SESSION from python (wsgi) - is it possible?