igirid/parrallex

parrallex 的加密和解密算法

v1.0.0 2022-06-02 16:46 UTC

This package is auto-updated.

Last update: 2024-09-30 01:52:27 UTC


README

parrallex 的加密和解密算法 https://parallexbank.com

<?php
use Igirid\Parrallex;


$cipher = new Parrallex($iv, $key);
// Encrypt Payload
$data = [
    "username" => 'your username',
    "password" => "your password",
];
$payload = json_encode($cipher->encryptPayload($data));

// Decrypt Response
$decryptedResponse = $cipher->decryptPayload($encryptedHexResponseFromParrallexServer);

安装

使用 Composer

$ composer require igirid/parrallex
{
    "require": {
        "igirid/parrallex": "^1.0.0"
    }
}
<?php
require 'vendor/autoload.php';

use Igirid\Parrallex;

$cipher = new Parrallex($iv, $key);

// Decrypt Response
$decryptedResponse = $cipher->decryptPayload($encryptedHexResponseFromParrallexServer);

安全联系方式

为了报告安全漏洞,请发送电子邮件至 igiridavid2@gmail.com。Igiri David 将贡献修复和披露。

致谢

贡献者

此项目的存在归功于所有贡献者。

贡献者