3v4l.org

run code in 300+ PHP versions simultaneously
<?php $textToEncrypt = "hello"; $encryptionMethod = "aes-256-cbc"; $secretHash = "123455"; $iv = "1234567890122354"; $encryptedMessage = openssl_encrypt($textToEncrypt, $encryptionMethod, $secretHash, 0, $iv); var_dump($encryptedMessage); $decryptedMessage = openssl_decrypt($encryptedMessage, $encryptionMethod, $secretHash, 0, $iv); echo $decryptedMessage;

preferences:
34.62 ms | 402 KiB | 5 Q