I am searching for an asymmetric encryption algorithm with a simple PHP implementation which is not generating different public/private keys each time I run it (but always the same for the same password).
The reason is simple: My customers often forget/reset their password, but once they remember it, they should be able to recover old encrypted files sent to them using the old public key. With RSA, every time they reset their password (and by that, their public key), a new random public key gets generated, even for the same password.
Thanks in advance!