I am looking for the simplest and secured way to encrypt/decrypt a string with a specific salt in PHP7
my string + specific salt = encryped data
decode(encryped data) = my string
I saw this post, but mcrypt_encrypt seems to be deprecated. Do you have any other suggestion or example ? Thank you
OpenSSL functions are a good way to go. Official docs here:
Hope it helps!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With