Hello I am quite new to CakePHP
Recently I need to transform a CakePHP system to Vanilla PHP . Everything is fine but when I need to migrate some old data with user_password, I have difficulty in understanding the algorithm.
According to the json file, I believe it is CakePHP v 2.2 ?
It has the line: “cakephp/debug_kit” : “2.2.*”
Now I have a record and its password is “cakecake1” and the hashed value is 0fcd0bf3aa107a7ef3185e9096df33e8003865b8
I tried MD5, SHA1 and SHA256 in PHP but all are not successful to hash the password “cakecake1” to “0fcd0bf3aa107a7ef3185e9096df33e8003865b8”. I should be grateful if someone can tell me how actually does CakePHP 2.2. generate the hash data ? Thank you very much
— FYI, I have solved the problem, I need to add salt (can be found in Cake config file) – and it is SHA1. The following is the sample PHP:
<?php echo sha1('de9257e48bad197eaae5148c52ce62acce0c8868'. "cakecake1"); ?>