webguerilla/pgpmailer

PGP 邮件发送器

1.0.0-alpha.2 2014-06-13 11:19 UTC

This package is not auto-updated.

Last update: 2024-09-24 02:44:09 UTC


README

这是一个用于发送 PGP 加密邮件的表单脚本。提交的内容被加密到公钥,并在服务器上完成。强烈建议您仅使用 pgpmailer 通过安全连接(如 SSL)进行操作。如果您在不安全的连接上使用 pgpmailer,您的私人数据在加密之前可能会被截获和修改。

要求

  • PHP 5
  • GnuPG
  • composer

安装

通过 Composer

{
    "require": {
        "webguerilla/pgpmailer": "~1.0"
    }
}

使用方法

pgpmailer 需要有一个 PGP 密钥和导出一个 ASCII-武装的公钥。

  1. 将 ASCII-武装的公钥复制到 'public/assets/',例如:'public/assets/0xBADB0B1337.asc'。
  2. 修改 'install/config.sample.php' 配置文件中的 $publicKeyFilepath。例如:$publicKeyFilepath = PATH_PUBLIC . '/assets/0xBADB0B1337.asc'
  3. 将文件 'install/config.sample.php' 移动到 'src/config.php'。
  4. 运行 ./composer.phar update

测试

$ phpunit

贡献

有关详细信息,请参阅 CONTRIBUTING

鸣谢

许可

GNU 通用公共许可证版本 3。请参阅 许可文件 以获取更多信息。