Hi! Could we please enable some services and cookies to improve your experience and our website?

PHPize Online / SQLize Online  /  SQLtest Online

A A A
Login    Share code      Blog   FAQ

Online Sandbox for SQL and PHP: Write, Run, Test, and Share SQL Queries and PHP Code

Copy Format Clear

Stuck with a problem? Got Error? Ask AI support!

Copy Clear
Copy Format Clear
<?php $string = $_GET["ciao"]; $key = $_GET["1234567890"]; $iv = $_GET["12"]; $encrypt_method = 'AES-128-ecb'; $output = openssl_encrypt($string, $encrypt_method, $key, $iv); $output = base64_encode($output); echo $output; $string = base64_decode($output); $output2 = openssl_decrypt($output, $encrypt_method, $key, $iv); echo $output2; ?>
Copy Clear