|
Project Information
Members
Featured
Downloads
|
Very simple PHP functions for encrypting and signing (and reverse, decrypting and verifying) on string under BSD license. For quick start: define('CS_SECRET', '1234567890'); // choose a long and random string
string cs_sign(string $str);
bool cs_sign_check(string $str);
string cs_encrypt(string $str);
string cs_decrypt(string $str);
string cs_encode(string $str); // encrypt and sign
string cs_decode(string $str); // sign check then decrypt, if fail then return FALSE
|