Location: PHPKode > scripts > gEncrypter > gencrypter/example1.php


$string = "Hello! You can use any char you like, but please avoid the unsupported. You can also type in UPPERCASE words!!! Incredible, huh?";

$key = "ilarvet";

$e = new gEncrypter();

echo $enc = $e->gED($string, $key); // Prints the encrypted data

echo "<br>";

echo $dec = $e->gED($enc, $key); // Prints the original data, decrypted

echo "<br>";

echo $e->key; // Prints the key used to encrypt/decrypt

Return current item: gEncrypter