How do I authenticate a user in PHP / MySQL?
Password Storage with PasswordLock:
hash('sha256', $password, true);base64_encode($step1);password_hash($step2, PASSWORD_DEFAULT);Crypto::encrypt($step3, $secretKey);
Password Verification with PasswordLock:
Crypto::decrypt($ciphertext, $secretKey);hash('sha256', $password, true);base64_encode($step2);password_verify($step3, $step1);

0 comments :
Post a Comment