Hi! Could we please enable some services and cookies to improve your experience and our website?
Online Sandbox for SQL and PHP: Write, Run, Test, and Share SQL Queries and PHP Code
<?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;
?>