...

View Full Version : Function to encrypt and unencrypt data?



Cloud Ghost
02-21-2010, 03:48 AM
Is there a function for PHP that can encrypt and unencrypt data?

Killermud
02-21-2010, 03:15 PM
base64_encode($string);

base64_decode($string);

SKDevelopment
02-21-2010, 05:07 PM
It is not really an encryption ... Base64 is used to encode binary data before sending it over some channel which does provide transporting for 8-bit encoded characters ...

For encryption please see e.g. Mcrypt functions (http://www.php.net/manual/en/ref.mcrypt.php).



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum