I have never seen this fatal error
in PHP before... It started when I found a password hashing class on github:
$Config = array(
"Depreciated" => 1,
"Notices" => 1,
"Errors" => 1,
"Warnings" => 1,
);
$Salt_Settings= 1;
$Password_Hashing = new SlayerSolutions\Authentication($Salt_Settings,$Config);
$Password_Hashing ->SetSalt("f4dd32");
$Password_Hashing ->SetKey("Login");
$Password_Hashing ->SetPositioning(0);
$Password_Entities = $Password_Hashing ->Password_Props($_POST['Password']);
$Result_Array = $Password_Hashing ->Hash_Password($Password_Entities );
This returns:
Fatal error: Incorrect Usage Of Hashing Functions. This must be executed in a step procedure.
I cannot view the actual code structure of the class as it seems to have been encoded with ioncube or something
For testing purposes this is fine, but please ensure to store the salt/key in the database and not reveal to
the user. in C:\xampp\htdocs\slayer\Class.php on line 0`. The salt is **meant** to be public. – Sébastien Renauld May 17 '13 at 14:37