我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

too long

When I try to sign test useing PGP I get no signature in result error.

public function pgpSign($strFileContent, $strSignKey) {
    $pgp = new \gnupg();
    $pgp->seterrormode(\gnupg::ERROR_EXCEPTION); 
    $arrFingerPrint = $pgp->import($strSignKey);
    $pgp->addsignkey($arrFingerPrint['fingerprint']);
    $pgp->setsignmode(GNUPG_SIG_MODE_DETACH);
    return $pgp->sign($strFileContent);
}

public function test() {
    return $this->pgpSign('test testowy', '/../Static/private_key.pem');    
}

It wass an issue wwith the key. I needed to generate a new one.

近期文章

  • 如何在php表单产品表中显示mysql blob图像
  • filterXpath和filter有什么区别? [关闭]
  • facebook graph api忽略了某些帖子
  • 在json中加入多个表
  • paypal网站支付专业版托管后成功的magento网址
  • 在OOP中为“一次性使用”功能存储“模板”变量的最有效位置
  • 单击导航栏时,无法打开Bootstrap菜单
  • too long
  • 哪个在facebook popup关闭时更安全?
  • 单击按钮后如何自动插入值
  • Google PHP API自动加载文件 - 它是否会替换所有单独的require_once调用?
  • 具有自定义状态的WordPress帖子需要在所有视图中显示
  • 如何在从facebook登录时在没有电子邮件的现有用户数据库中添加新用户
  • PHP重复输出
  • 看不清楚什么
  • 同步导航栏内容Bootstrap
  • 在Controller的Action CakePHP中加载插件
  • Yii2内存排气错误
  • 如何从帖子中获取对象ID?
  • php中的语言转换选项

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华