I am looking at using openssl to encrypt certain strings using a public key and then decrypting that with the private key and passphrase.
I would prefer it if I could get the public encryption to return the same encrypted string for the same given string.
For example, if I feed the public encryption with the string "Hello World" and it returns "7530a12af4db2989fe1faa8288c063ff1be6" then I later feed the function "Hello World" again, it would again return "7530a12af4db2989fe1faa8288c063ff1be6".
Is this possible to do with openssl?
Are there any other public/private encryption functions in PHP that might accomplish this?