jasonhinkle/php-gpg 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

jasonhinkle/php-gpg

Composer 安装命令:

composer require jasonhinkle/php-gpg

包简介

GPG / PGP port written in pure PHP with no binary dependencies

关键字:

README 文档

README

This project is currently not actively maintained, please take a look at https://github.com/singpolyma/openpgp-php as alternative.

php-gpg is a pure PHP implementation of GPG/PGP (currently supports encryption only). The library does not require PGP/GPG binaries and should run on any platform that supports PHP.

This library is useful for encrypting data before it is sent over an insecure protocol (for example email). Messages encrypted with this library are compatible and can be decrypted by standard GPG/PGP clients.

Features/Limitations

  • Supports RSA, DSA public key length of 2,4,8,16,512,1024,2048 or 4096
  • Currently supports only encrypt
  • Encrypted messages are integrity protected (php-gpg 1.6.0+)

Hey You! If you have a good understanding of public key encryption and want to implement signing or decryption your pull request would be welcome.

Composer

If you use PHP < 7.0, please install random_compat with Composer.

Just run php composer.phar install or composer install in the directory of the composer.json file.

Usage

require __DIR__ . '/vendor/autoload.php';
require_once 'libs/GPG.php';

$gpg = new GPG();

// create an instance of a GPG public key object based on ASCII key
$pub_key = new GPG_Public_Key($public_key_ascii);

// using the key, encrypt your plain text using the public key
$encrypted = $gpg->encrypt($pub_key,$plain_text_string);

echo $encrypted;

License

GPL http://www.gnu.org/copyleft/gpl.html

I'd like to release this under a more permissive license, but since PGP & GPG itself are GPL, I think this library is likely bound to the terms of GPL as well.

jasonhinkle/php-gpg 适用场景与选型建议

jasonhinkle/php-gpg 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 149.86k 次下载、GitHub Stars 达 116, 最近一次更新时间为 2015 年 11 月 12 日, 在 PHP 生态内属于活跃度较高的组件。

它主要适用于以下技术方向: 「gpg」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。

我们在过去多个企业项目中使用过 jasonhinkle/php-gpg 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 jasonhinkle/php-gpg 我们能提供哪些服务?
定制开发 / 二次开发

基于 jasonhinkle/php-gpg 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

  • 总下载量: 149.86k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 118
  • 点击次数: 25
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 116
  • Watchers: 18
  • Forks: 27
  • 开发语言: PHP

其他信息

  • 授权协议: GPL
  • 更新时间: 2015-11-12