worldpress 的 GPG 加密插件

资料来源 https://trog.qgl.org/wpgpg/

这个插件的作用是,用GPG 加密worldpress 的输出内容,然后在chrome浏览器中上用定制的浏览器插件解密

客户端

1. 安装 gnupg ,并生成密钥对 ,下载地址 https://gnupg.org/download/index.html
2. chrome浏览器在开发模式下导入 wpgpg Chrome extension ,https://github.com/trogau/wpgpg-extension

服务器端 

1. 安装 php-gunpg 扩展

apt install -y libgpgme11-dev
yum install -y gpgme-devel
cd /opt/lampp/src/
wget http://pecl.php.net/get/gnupg-1.4.0.tgz
tar zxvf gnupg-1.4.0.tgz
cd gnupg-1.4.0
/opt/lampp/bin/phpize
./configure --with-php-config=/opt/lampp/bin/php-config
make
make test
make install
/opt/lampp/ctlscript.sh restart apache

# 这条命令别运行 /opt/lampp/bin/pecl channel-update pecl.php.net
# /opt/lampp/bin/pecl install gnupg
vim /opt/lampp/etc/php.ini
extension="gnupg.so"

2. 启用 wpgpg WordPress plugin , https://github.com/trogau/wpgpg

worldpress 的 GPG 加密插件的更多相关文章

  1. 使用 gpg 加密文件 - 通过 shell 或 php

    使用 gpg 加密文件 - 通过 shell 或 php 背景:客户提供私钥,并要求我方通过php把加密后的文件传输给他们. 环境 macOS Sierra 10.12.1 php 7.0.8 0.安 ...

  2. 【javascript类库】zepto和jquery的md5加密插件

    [javascript类库]zepto和jquery的md5加密插件 相信很多人对jQuery并不陌生,这款封装良好的插件被很多开发者使用. zepto可以说是jQuery在移动端的替代产品,它比jQ ...

  3. gpg加密和解密

    linux:gpg加密和解密 1 创建密钥 2 查看私钥 3 导出公钥 4 导出私钥 5 导入秘钥 5.1 公钥 6 公钥加密 7 私钥解密 创建密钥 gpg --gen-key 你要求输入一下内容, ...

  4. GPG加密windows中使用

    在Windows系统使用Gpg4win进行加密解密 2015-06-15 by u014076884 GPG,又称为GnuPG,全称是Gnu Private Guard,即GNU隐私卫士.GPG是以P ...

  5. linux:gpg加密和解密

    http://www.bubuko.com/infodetail-650747.html

  6. jQuery的md5加密插件及其它js md5加密代码

    /** * jQuery MD5 hash algorithm function * * <code> * Calculate the md5 hash of a String * Str ...

  7. 使用 GPG 对数据进行加密解密签名

    一:使用 GPG 对数据进行加密解密签名 基本的工具使用 1. GPG 是GNUPG 免费开源的gpg加密工具,和同pgp兼容,pgp收费. 2. 在mac上使用https://gpgtools.or ...

  8. 文件加密 解密 pdftk openssl gpg vim

    openssl加密和解密 . openssl des -salt -in file -out file.des openssl des -d -salt -in file.des -out file ...

  9. C#调用GPG命令进行加密解密文件操作

    public void GPG() { string password = "1234567890"; System.Diagnostics.ProcessStartInfo ps ...

随机推荐

  1. [JZOJ4272] [NOIP2015模拟10.28B组] 序章-弗兰德的秘密 解题报告(树形DP)

    Description 背景介绍弗兰德,我不知道这个地方对我意味着什么.这里是一切开始的地方.3年前,还是个什么都没见过的少年,来到弗兰德的树下,走进了封闭的密室,扭动的封尘已久机关,在石板上知道了这 ...

  2. A list is a sequence

    Like a string, a list is a sequence of values. In a string, the values are characters; in a list, th ...

  3. Square roots

    Loops are often used in programs that compute numerical results by starting with an approximate answ ...

  4. Laravel-错误调试与记录日志

    Laravel-错误调试与记录日志 标签(空格分隔): php 错误调试 配置 修改/config/app.php 'debug' => env('APP_DEBUG', true), 开启de ...

  5. HDU 4786Fibonacci Tree(最小生成树)

    Time Limit: 4000/2000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others)Total Submission( ...

  6. svn回到某个历史版本的做法

    作者:朱金灿 来源:http://blog.csdn.net/clever101 一.在选中的文件上弹出svn的右键菜单,单击"Updateto revision"菜单项,如下图: ...

  7. form表单提交的时候,传过去的值是键值对的形式

    效果展示 第一种需求,点击input的时候,input的value发生改变 $('.group-wrapper input').click(function(){ $(this).val(0); // ...

  8. Html Input disabled属性

    input的disabled: <input type="text" name="name" placeholder="请输入名称" ...

  9. Maven 工程 POM.XML文件最全详解

    <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/20 ...

  10. F - Humidex(1.4.2)

    Time Limit:1000MS     Memory Limit:65536KB     64bit IO Format:%I64d & %I64u Submit Status Descr ...