Recommend this page to a friend! |
![]() ![]() |
Info | ![]() |
![]() |
![]() ![]() |
Reputation | Support forum (3) | Blog | Links |
Last Updated | Ratings | Unique User Downloads | Download Rankings | |||||
2022-10-21 (7 days ago) ![]() | Not enough user ratings | Total: 594 | All time: 5,203 This week: 130![]() |
Version | License | PHP version | Categories | |||
rsa-encryption 1.0.4 | BSD License | 5.3.3 | PHP 5, Cryptography |
Description | Author | |
This class can RSA generate keys and encrypt data using OpenSSL. Recommendations rsa encryption and decryption |
|
This class can RSA generate keys and encrypt data using OpenSSL.
It can generate public and private RSA keys of given length calling the openssl program.
The class and also encrypt data with a given public key file and decrypt data with a given private key file.
1) Install composer
2) Follow in the project folder:
composer require dmamontov/rsacrypt ~1.0.2
In config composer.json
your project will be added to the library dmamontov/rsacrypt
, who settled in the folder vendor/
. In the absence of a config file or folder with vendors they will be created.
If before your project is not used composer
, connect the startup file vendors. To do this, enter the code in the project:
require 'path/to/vendor/autoload.php';
$crypt = new RsaCrypt;
$crypt->genKeys(2048);
$crypt->setPublicKey('public.pem');
$crypt->setPrivateKey('private.pem');
$data = $crypt->encrypt("Test Crypt");
echo $data;
echo $crypt->decrypt($data);
![]() |
File | Role | Description | ||
---|---|---|---|---|
![]() |
||||
![]() |
||||
![]() ![]() |
Data | Auxiliary data | ||
![]() ![]() |
Data | Auxiliary data | ||
![]() ![]() |
Data | Auxiliary data | ||
![]() ![]() |
Example | Example script | ||
![]() ![]() |
Lic. | License text | ||
![]() ![]() |
Data | Auxiliary data | ||
![]() ![]() |
Doc. | Documentation |
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.