Skip to content
Advertisement

How do you Encrypt and Decrypt a PHP String?

What I mean is:

JavaScript

Maybe something like:

JavaScript
  • In PHP, how can you do this?

Attempted to use Crypt_Blowfish, but it didn’t work for me.

Advertisement

Answer

Updated

PHP 7 ready version. It uses openssl_encrypt function from PHP OpenSSL Library.

JavaScript
User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement