Hello @kartik,
Use openssl_encrypt and openssl_decrypt
You can do something like:
$string_to_encrypt="Test";
$password="password";
$encrypted_string=openssl_encrypt($string_to_encrypt,"AES-128-ECB",$password);
$decrypted_string=openssl_decrypt($encrypted_string,"AES-128-ECB",$password);
Hope it ...READ MORE
										
											
												
													Sep 14, 2020
												
												
													in PHP
												
												
													by 
												Niroj
												
													• 82,800 points 
												
											
											
												•
												
													9,380 views