Check a encrypted a value with original value.
App::Module('Cryptography')->encrypt(Value 1,Value 2);
Parameter |
Type |
Description |
---|---|---|
Value 1 |
Mandatory |
Not encrypted value |
Value 2 |
Mandatory |
Encrypted value to compare |
See bellow examples:
$return = App::Module('Cryptography')
->checkEncrypt('123456','e10adc3949ba59abbe56e057f20f883e');
pre($return);
// Return true