encrypt($data); return base64_encode($encrypted); } /** * Uses blowfish to decode data assumes data has been base64 encoded with the iv stored as part of the data * @param STRING key - key to base decoding off of * @param STRING encoded base64 encoded blowfish encrypted data * @return string */ function blowfishDecode($key, $encoded){ $data = base64_decode($encoded); $bf = new Crypt_Blowfish($key); return trim($bf->decrypt($data)); } ?>