simple and easy php encryption and decryption
Page 1 of 1
simple and easy php encryption and decryption
- Code:
<?php
// its a good starting point add your own added security / padding / salts!
//Key
$key = 'SuperSecretKey';
//To Encrypt:
$encrypted = mcrypt_encrypt(MCRYPT_RIJNDAEL_256, $key, 'I want to encrypt this', MCRYPT_MODE_ECB);
//To Decrypt:
$decrypted = mcrypt_decrypt(MCRYPT_RIJNDAEL_256, $key, $encrypted, MCRYPT_MODE_ECB);
echo $encrypted;
echo $decrypted;
?>
Similar topics
» php encryption and decryption plus md5 cracking
» Python Encryption And Decryption
» Bash OTP Encryption And Decryption
» Simple & Fast Python Web Hosting From Any Folder On Linux
» RSA Python Encryption & Decryption Example That Works
» Python Encryption And Decryption
» Bash OTP Encryption And Decryption
» Simple & Fast Python Web Hosting From Any Folder On Linux
» RSA Python Encryption & Decryption Example That Works
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum