<?php
$simple_string = "Welcome to Jungles\n";
echo " Text Asli : " . $simple_string;
$ciphering = "AES-128-CTR";
$iv_length = openssl_cipher_iv_length($ciphering);
$options = 0;
$encryption_iv = '1234567891011121';
$encryption_key = "Test!234";
$encryption = openssl_encrypt($simple_string, $ciphering,
$encryption_key, $options, $encryption_iv);
echo " 1. Encrypted String: " . $encryption . "\n";
$decryption_iv = '1234567891011121';
$decryption_key = "Test!234";
$decryption=openssl_decrypt ($encryption, $ciphering,
$decryption_key, $options, $decryption_iv);
echo " 2. Decrypted String: " . $decryption;
?>
Thursday, September 28, 2023
Encrypt Decrypt PHP OPEN SSL PHP
Subscribe to:
Post Comments (Atom)
Set Cookie dan Remove Cookie dengan php vanilla.js
< html lang = "en" > < head > < meta charset = "UTF-8" > < meta name = "viewport...
-
<html> <head> <title>Convert Image to Base64</title> </head> <body> <h2> Convert Ima...
-
Javascript ES6 Untuk Kali ini Coba Nge-Share Upload Foto dengan Vanilla Javascript dengan 2 method. method pertama dengan menggunakan n...
-
< html lang = "en" > < head > < meta charset = "UTF-8" > < meta http-equiv = "X-UA-...
No comments:
Post a Comment