Download the PHP package kevchikezie/cryptographer without Composer
On this page you can find all versions of the php package kevchikezie/cryptographer. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download kevchikezie/cryptographer
More information about kevchikezie/cryptographer
Files in kevchikezie/cryptographer
Package cryptographer
Short Description A PHP library for RSA encryption and decryption using the OpenSSL extension
License MIT
Homepage https://github.com/kevchikezie/cryptographer
Informations about the package cryptographer
Cryptographer
A minimal PHP library for RSA encryption and decryption. This library was built around the PHP OpenSSL extension.
What can this library do?
The library has very minimal features which includes
- Encrypt data using a public RSA key
- Decrypt data using a private RSA key
- Generate a pair of private and public RSA keys
What do you need before you can use this library?
Before installing this library, ensure you have the requirements below;
- PHP >=7.0 (PHP 7.0 and above)
- PHP OpenSSL extention is already installed
How do you use this library?
Install via composer
Encrypt data using public RSA key
You can also encrypt an array of data. If you pass an array of data to the
encrypt()
method, it returns an array of encrypted data.
Decrypt data using private RSA key
You can also decrypt an array of encrypted data. If you pass an array of
encrypted data to the decrypt()
method, it returns an array of decrypted data.
Generate a pair of private and public RSA keys
The generate()
method returns an array containing the private and public RSA
keys. The generate()
method also accepts an optional parameter of the key size
to be generated. The accepted bits are '512', '1024', '2048', '4096'.
If a parameter is not provided, the default bits of 2048 is used.
You can also pass a parameter to the generate()
method
License
The Cryptographer library is open-sourced software licensed under the MIT license