library simple-rsa-cryptor-php
A simple toolset for working with RSA encryption in PHP
naylonkessler/simple-rsa-cryptor-php
A simple toolset for working with RSA encryption in PHP
- Wednesday, February 7, 2018
- by naylonkessler
- Repository
- 1 Watchers
- 0 Stars
- 4 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 0 Forks
- 0 Open issues
- 2 Versions
- 33 % Grown
SimpleRSACryptor
A simple toolset for working with RSA encryption in PHP., (*1)
Installation
Just require the package using composer., (*2)
composer require naylonkessler/simple-rsa-cryptor-php
Using the package
Just import, instantiate and call:, (*3)
<?php
use SimpleRSACryptor\Cryptor;
use SimpleRSACryptor\Keys\PublicKey;
use SimpleRSACryptor\Keys\PrivateKey;
$publicKey = new PublicKey('path-to-public-key-file.pem');
$privateKey = new PrivateKey('path-to-private-key-file.pem');
$passPhrase = 'pass phrase of private key';
$cryptor = new Cryptor($publicKey, $privateKey, $passPhrase);
$encrypted = $cryptor->encrypt('Some data');
$decrypted = $cryptor->decrypt($encrypted);
echo $decrypted;
The \SimpleRSACryptor\Cryptor class
TBD, (*4)
The \SimpleRSACryptor\Keys\PublicKey class
TBD, (*5)
The \SimpleRSACryptor\Keys\PrivateKey class
TBD, (*6)
dev-master
9999999-dev
A simple toolset for working with RSA encryption in PHP
Sources
Download
MIT
The Requires
The Development Requires
by
Naylon Kessler de Aquino
v1.0.0
1.0.0.0
A simple toolset for working with RSA encryption in PHP
Sources
Download
MIT
The Requires
The Development Requires
by
Naylon Kessler de Aquino