Tag Archives: decryption

PHP Encrypt & Decrypt

Encrypt:

Decrypt:

Key can be specific for whatever application you’re using the encryption for. For example, if you’re using it to encrypt passwords you would do something along the lines of:

Now whenever you wanted to decrypt the user password you would have to use the same key:

Which leaves the functions open to an infinite number of applications.