Recommend this page to a friend! |
Provide strong file encryption using OpenSSL, via an easy-to-use PHP wrapper.
One use is to avoid direct OpenSSL interaction, such as:
openssl enc -e -aes-256-cbc -in abc.txt -out abc.enc -k password -S deadbeef
and offer something simpler:
php cmdline_example.php -e abc.txt
php cmdline_example.php -e abc.txt
results in the encrypted file abc.txt.osl
php cmdline_example.php -d abc.txt.osl
results in abc.txt, with the correct password
-- and overwrites the original file abc.txt if it is present in the same directory.
The maximum file size that can be processed is approximately 1.8GB.
This limit is seemingly dictated by the PHP openssl module (OpenSSL itself on the command-line will process 2GB+ files).
A file-chunking version for limited memory availability works with the non-counter (CTR) mode ciphers.
Appending the HMAC to the final file and decrypting successfully is not yet ready.
OpenSSL File Encrypt is released under the GPL v.3.
Classes of Martin Latter | > | PHP OpenSSL Encrypt and Decrypt File | > | Download .zip .tar.gz | > | Support forum | > | Blog | > | Latest changes |
|
|
Groups | Applications | Files |
Groups |
PHP 5 | Classes using PHP 5 specific features | View top rated classes |
Cryptography | Encrypting, decrypting and hashing data | View top rated classes |
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.
Files |
File | Role | Description | ||
---|---|---|---|---|
classes (1 file) | ||||
file_examples (1 file) | ||||
cmdline_example.php | Example | Example script | ||
LICENSE | Lic. | License text | ||
README.md | Doc. | Documentation |
Install with Composer - Download all files: openssl-file-encrypt.tar.gz openssl-file-encrypt.zip NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.
|