How to work aes 128 cryptography with php

@Mukesh_Rajput try this

for encrypt string use this code

<?php
$simple_string = $_GET['string'];
$ciphering = "AES-128-CTR";
$iv_length = openssl_cipher_iv_length($ciphering);
$options = 0;
$encryption_iv = '1234567891011121';
$encryption_key = "yourkey";
$encryption = openssl_encrypt($simple_string, $ciphering,
			$encryption_key, $options, $encryption_iv);
echo $encryption;
?>

and for decrypt string use this code


<?php
$ciphering = "AES-128-CTR";
$options = 0;
$simple_string = $_GET['string'];
$decryption_iv = '1234567891011121';
$decryption_key = "yourkey";
$decryption=openssl_decrypt ($simple_string, $ciphering,
		$decryption_key, $options, $decryption_iv);
echo $decryption;
?>

I just modified the code provided by geeksforgeeks

you can host two websites one for encryption and the second for decryption