2

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

1

1 Answer 1

17

OpenSSL functions are a good way to go. Official docs here:

Hope it helps!

Sign up to request clarification or add additional context in comments.

1 Comment

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.