Download the PHP package blazemv/cryptx without Composer
On this page you can find all versions of the php package blazemv/cryptx. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download blazemv/cryptx
More information about blazemv/cryptx
Files in blazemv/cryptx
Download blazemv/cryptx
More information about blazemv/cryptx
Files in blazemv/cryptx
Vendor blazemv
Package cryptx
Short Description Simple PHP library for encrypting and decrypting data using private and public pem key files
License MIT
Homepage https://github.com/blazemv/cryptx
Package cryptx
Short Description Simple PHP library for encrypting and decrypting data using private and public pem key files
License MIT
Homepage https://github.com/blazemv/cryptx
Please rate this library. Is it a good library?
Informations about the package cryptx
Cryptx
Simple PHP library for encrypting and decrypting data using private and public pem key files
Requirements
- PHP 7.2 or higher
- openssl PHP extension
Installation
$ composer require blazemv/cryptx
Usage
$ php artisan vendor:publish --provider="Blaze\Cryptx\CryptxServiceProvider"
$ php artisan cryptx:keys
Laravel
Outside Laravel
Important
- encrypt method will return a base64 encoded string of encrypted data.
- decrypt method will expect a base64 encoded string of encrypted data.
- You can avoid base64 encoding and decoding by passing false as the second parameter to both methods.
- a Private key is needed to encode data.
- a Public key is needed to decode an encoded data. public key should be derived from the private key that was used during encryption.
- Pass the private and public key path to Cryptx constructor. For laravel, declare these paths in
config/cryptx.php
. - If you want to only decrypt data, the private key path could be null. Provide the correct public key path.
- decrypt method will return false upon failure. (eg:incorrect public key, invalid encrypted payload, etc...).
- It is highly recommended to use absolute paths as key paths.
All versions of cryptx with dependencies
PHP Build Version
Package Version
Requires
php Version
>=7.2.0
The package blazemv/cryptx contains the following files
Loading the files please wait ....