I'm working on a PHP based project. I want to secure passwords using my machine's private key - something one shouldn't be giving away anyway. So I thought it might be a good idea. However, the OpenSSL API within PHP is a bit confusing.
Can someone point out a way I can store and later validate a user's password? With "store", I mean that during the user's registration, the password entry is created and stored, and with "validate" I was meaning to pick up the password and validate it against the entered string.
I tried to find a Composer library, but my installation of PHP is missing ext-mcrypt
since I did not compile it in.