Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

encrypt/decrypt data php

//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);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #data #php
ADD COMMENT
Topic
Name
6+5 =