yii2-extension yii2-rsa
yii2-rsa
mikeching/yii2-rsa
yii2-rsa
- Tuesday, December 15, 2015
- by mikeching
- Repository
- 1 Watchers
- 0 Stars
- 3 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 0 Forks
- 0 Open issues
- 1 Versions
- 0 % Grown
yii2-rsa
composer.json
"require": {
"mikeching/yii2-rsa": "*"
},
example:
```php
use mikeching\rsa\Rsa;, (*1)
//init
set private and public key to you common/config/params.php
$str = 'yii2-rsa';, (*2)
//private encrypt -> public decrypt
$enStr = Rsa::rsaPrivateEncrypt($str);
echo $enStr;
$deStr = Rsa::rsaPublicDecrypt($enStr);
echo $deStr;, (*3)
//public encrypt -> private decrypt
$enStr = Rsa::rsaPublicEncrypt($str);
echo $enStr;
$deStr = Rsa::rsaPrivateDecrypt($enStr);
echo $deStr;, (*4)
dev-master
9999999-dev
yii2-rsa
Sources
Download
BSD-3-Clause
The Requires
by
chengyafei