function encrypt($result, $key_pass){
$encrypted_data = openssl_encrypt($result, 'aes-256-cbc', $key_pass, OPENSSL_RAW_DATA, '1234567890123412');
return base64_encode($encrypted_data);
}
$key_pass = "my_mega_super_pass_my_mega_super";
$result = "my_test";
echo encrypt($result, $key_pass);
KrixJ45x30l+vFi32QS6Qw==
from Crypto.Cipher import AES
from base64 import b64decode
key = b'my_mega_super_pass_my_mega_super'
obj2 = AES.new(key, AES.MODE_CBC, b'0123456789012345')
ciphertext = b"KrixJ45x30l+vFi32QS6Qw=="
plaintext = obj2.decrypt(b64decode(ciphertext)).strip().decode('utf-8')
print(plaintext)
lz^sdpu