Build safer and secure applications in PHP with features like password hashing, secret key encryption, envelope encryption, password storage, whole-file cryptography, and more using PHP encryption libraries.
Essentially password encrypting in PHP works by hashing them with an appropriate password-hashing algorithm. The primary security functions offered by PHP encryption and cryptographic libraries include Symmetric and Asymmetric key authenticated encryption, anonymous encryption, digital signatures, cryptographic hash functions, RSA Encryption, RSA Signatures, and key decryption. Using these libraries, you can generate an ephemeral encryption key to encrypt your message with PHP symmetric-key encryption. And then, decrypt the ephemeral key with the correct RSA private key.
Check out the below list to find more trending PHP encryption libraries to add security functions to your applications:
The php-encryption library employs simple yet effective encryption methods. This library is extremely useful for securely encrypting data with a key or password in PHP.
php-encryptionby defuse
Simple Encryption in PHP.
libsodium is one of the world’s most reliable, cross-platform cryptography libraries. It offers numerous functionalities making it extremely popular among developers.
Halite is a comprehensive high-level cryptography library that offers all the functions of libsodium with a simple and intuitive interface.
haliteby paragonie
High-level cryptography interface powered by libsodium
haliteby paragonie
PHP
1082
Version:v5.1.0
License: Weak Copyleft (MPL-2.0)
PrivateBinby PrivateBin
A minimalist, open source online pastebin where the server has zero knowledge of pasted data. Data is encrypted/decrypted in the browser using 256 bits AES.
PrivateBinby PrivateBin
PHP
5068
Version:1.5.1
License: Others (Non-SPDX)
easyengineby EasyEngine
Command-line control panel for Nginx Server to manage WordPress sites running on Nginx, PHP, MySQL, and Let's Encrypt
easyengineby EasyEngine
PHP
2008
Version:v4.6.6
License: Permissive (MIT)
phpbuby sebastianfeldmann
PHP Backup Utility - Creates and encrypts database and file backups, syncs your backups to other servers or cloud services and assists you monitor your backup process
phpbuby sebastianfeldmann
PHP
1235
Version:6.0.15
License: Others (Non-SPDX)
sodium_compatby paragonie
Pure PHP polyfill for ext/sodium
sodium_compatby paragonie
PHP
793
Version:v1.17.1
License: Permissive (ISC)
acmephpby acmephp
Let's Encrypt/ACME Command Line client written in PHP
acmephpby acmephp
PHP
538
Version:2.1.0
License: Permissive (MIT)
PHP-Secure-Sessionby ezimuel
Encrypt and authenticate PHP session data using AES-256 and HMAC-SHA256
PHP-Secure-Sessionby ezimuel
PHP
400
Version:v1.1.0
License: Permissive (MIT)
enphpby djunny
a Open Source PHP Code Confusion + Encryption Project
enphpby djunny
PHP
363
Version:Current
License: Strong Copyleft (GPL-3.0)
acme-clientby kelunik
Let's Encrypt / ACME client written in PHP for the CLI.
acme-clientby kelunik
PHP
342
Version:v0.3.0-beta.4
License: Permissive (MIT)
ciphersweetby paragonie
Fast, searchable field-level encryption for PHP projects
ciphersweetby paragonie
PHP
384
Version:v4.3.0
License: Others (Non-SPDX)
cryptojs-aes-phpby brainfoolong
CryptoJS 3.x AES encryption/decryption on client side with Javascript and on server side with PHP
cryptojs-aes-phpby brainfoolong
PHP
351
Version:2.1.1
License: Permissive (MIT)