01-27-2008, 02:49 AM
|
#6 (permalink)
|
|
La Vida es Sueño
Join Date: Sep 2007
Location: Oldham
Posts: 2,280
Thanks: 90
|
php Code:
function wildhoney_encrypt ($szString){ $szEncrypted = ''; $aParts = str_split ($szString, 1); foreach($aParts as $szLetter) { $szEncrypted .= chr(ord($szLetter) + 5); } return $szEncrypted; }function wildhoney_decrypt ($szString){ $szDecrypted = ''; $aParts = str_split ($szString, 1); foreach($aParts as $szLetter) { $szDecrypted .= chr(ord($szLetter) - 5); } return $szDecrypted; }$szString = 'Bleh'; $szEncrypted = wildhoney_encrypt ($szString); $szDecrypted = wildhoney_decrypt ($szEncrypted); echo 'Encrypted: ' . $szEncrypted . '<br />'; echo 'Decrypted: ' . $szDecrypted;
Lol  Night night everybody.
__________________
The man who comes back through the Door in the Wall will never be quite the same as the man who went out.
|
|
|