strife/rsa

使用 GMP 在 PHP 中实现的 Multiprime RSA。不用于加密目的,请不要在生产环境中使用!

1.0.0-beta2 2017-01-02 09:49 UTC

This package is not auto-updated.

Last update: 2024-09-18 19:51:20 UTC


README

用法

由于太懒惰,这里不再描述,请参考 tests/RSATest.php 以了解用法。

注意

不用于加密目的,请不要在生产环境中使用!这是纯 RSA,没有使用填充。

PHPUnit

所需引导: phpunit --bootstrap tests/bootstrap.php tests/

分组

  • slow
    • 执行较慢的测试。
  • meta
    • 测试比较器,例如 tests/GmpComparatorTest.php 的测试。
  • silly
    • 可能不涵盖预期功能的测试,例如 tests/RSATest.php testMultiplicativeHomomorphism()

许可证

Multiprime RSA, written in PHP using GMP. Encrypt and decrypt RSA
with any amount of primes.
Copyright (C) 2016-2017  Henry Jekyll

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, see <https://gnu.ac.cn/licenses/>.