PHP code example of tinyada / rsa
1. Go to this page and download the library: Download tinyada/rsa library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
tinyada / rsa example snippets
TinyAda\RSA\RSAServiceProvider::class,
'RSA' => TinyAda\RSA\RSA::class,
#加密
$ciphertext = RSA::encrypt($plaintext);
#解密
RSA::decrypt($ciphertext);
$ php artisan vendor:publish --provider="TinyAda\RSA\RSAServiceProvider"