Download the PHP package ahsankhatri/cryptolib-php without Composer
On this page you can find all versions of the php package ahsankhatri/cryptolib-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download ahsankhatri/cryptolib-php
More information about ahsankhatri/cryptolib-php
Files in ahsankhatri/cryptolib-php
Package cryptolib-php
Short Description A library to encrypt or decrypt with random password generator based on secret key defined.
License MIT
Homepage https://github.com/ahsankhatri/cryptolib-php
Informations about the package cryptolib-php
CryptoLib (PHP)
This is the library for encrypting data with a key (password will be generate as per your parameters set) in PHP.
WHY ANOTHER LIBRARY? This was intended to developed for cross-platform AES Encryption here as PHP was missing. My main objective is to create library for AES-256-CBC
to contribute PHP package for Cross-Platform-AES package, more features will be added whenever I gets time.
Features
- Support for Random IV (initialization vector) for encryption and decryption. Randomization is crucial for encryption schemes to achieve semantic security, a property whereby repeated usage of the scheme under the same key does not allow an attacker to infer relationships between segments of the encrypted message.
- Support for SHA-256 for hashing the key. Never use plain text as encryption key. Always hash the plain text key and then use for encryption. AES permits the use of 256-bit keys. Breaking a symmetric 256-bit key by brute force requires 2^128 times more computational power than a 128-bit key. A device that could check a billion billion (10^18) AES keys per second would in theory require about 3×10^51 years to exhaust the 256-bit key space.
- PHP-7 Support since
mcrypt
has been deprecated.
Installation
You can install the package via composer:
Dependencies
The bindings require the following extensions in order to work properly:
If you use Composer, these dependencies should be handled automatically. If you install manually, you'll want to make sure that these extensions are available.
Usage
With Random IV
With Generated IV
Testing
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Credits
- Ahsaan Muhammad Yousuf
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of cryptolib-php with dependencies
ext-openssl Version *