Encrypt a value. This function use for password encryption.
App::Module('Cryptography')->encrypt(String);
Parameter |
Type |
Description |
---|---|---|
String |
Mandatory |
String Value to encrypt |
See bellow examples:
$data = App::Module('Cryptography')->encrypt('123456');
pre($data)
/*
// Return
e10adc3949ba59abbe56e057f20f883e
*/