I'm using the following PHP code to encrypt a password and then saving it into a database, I need to be able to decrypt it using Python.
I am successful in decrypting it using PHP but unable to find away of doing so using Python(I'm using version 2.7.9 if it matters)..
$mypass = "somepassword"
$encryptionMethod = "AES-256-CBC";
$secretHash = "25c6c78835b7479b151f2136cd888777";
$encpass = openssl_encrypt($mypass, $encryptionMethod, $secretHash);
I have no issues opening and reading from the DB, my only problem is the decryption portion. Any suggestions would be welcome, thanks.