Answers for "Symmetric encryption in PHP"

PHP
0

Symmetric encryption in PHP

<?php
$plaintext = "Your sensitive message";
$cipher = "AES-128-CTR";
$key = "Blog Desire";
$iv = "1232434565432123";
$ciphertext = openssl_encrypt($plaintext, $cipher, $key, $options=0, $iv);
echo $ciphertext;
Posted by: Guest on March-20-2022

Browse Popular Code Answers by Language