Recommend this page to a friend! |
![]() |
Info | Example | ![]() |
![]() |
![]() |
Reputation | Support forum | Blog | Links |
Ratings | Unique User Downloads | Download Rankings | ||||
Not yet rated by the users | Total: 301 | All time: 7,410 This week: 74![]() |
Version | License | PHP version | Categories | |||
openssl-file-encrypt 0.05 | GNU General Publi... | 7.0 | PHP 5, Cryptography |
Description | Author | |
This class can encrypt and decrypt file data using OpenSSL. |
|
#!/usr/bin/env php |
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.
![]() |
File | Role | Description | ||
---|---|---|---|---|
![]() |
||||
![]() |
||||
![]() ![]() |
Example | Example script | ||
![]() ![]() |
Lic. | License text | ||
![]() ![]() |
Doc. | Documentation |
The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page. |
![]() |
![]() | openssl-file-encrypt-2018-03-30.zip 15KB |
![]() | openssl-file-encrypt-2018-03-30.tar.gz 15KB |
![]() | Install with Composer |
Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
100% |
|
|
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.