edwinlll/phpbitcrypt

v1.0.0 2019-11-26 08:05 UTC

This package is auto-updated.

Last update: 2024-10-26 19:16:19 UTC


README

1. Require with Composer

composer require edwinlll/phpbitcrypt

2. Example

use GuzzleHttp\Client;
use Edwinlll\PhpBitcrypt\Rsa;
use Monolog\Logger;

$rsa = new Rsa(function() {
            return new Client([
                "base_uri" => "http://127.0.0.1:9989"
            ]);
        }, $logger);
$response = $rsa->encrypt("token", "data");
if($response->getStatusCode() == 200) {
    $rst = $response->json();
}