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

如何在Go中创建加密的OpenPGP私钥?

I would like to generate OpenPGP key pairs and encrypt them using 'passphrases' before exporting them. I would like to do so in Go, using its openpgp package. So far I have generated key pairs, exported them and successfully imported the public keys in GnuPG for encryption, using the simple wrapper linked here.

I still need to encrypt the private keys using 'passphrases' before exporting them in ASCII armor though. Could someone please provide me with an example or some hint on how to do this?

近期文章

  • 用cli包分配结构变量
  • 如何为GORM关闭IDENTITY_INSERT
  • 我可以使用Golang获取Active Directory环境的内部域名吗?
  • Safari在提取时将zip文件下载为“未知”(使用polyfill)
  • Kubernetes集群上没有CGO的Golang DNS
  • MySQL外键违规20%的时间
  • Golang AST-添加导入“ C”
  • 随时调用C函数
  • 无论我在代码中投入多少,我都无法弄清楚如何纠正导入周期。 (Golang)
  • 具有名称空间的Golang XML元帅
  • 如何包装自定义HandlerFunc
  • 射线追踪器透明度中的条纹
  • 从zipkintracer获取traceId
  • 从golang项目播放/流音频
  • SetMaxOpenConns()无法解决“错误1040:连接过多”
  • Godaddy ssl证书已通过链问题的A级认证-包含锚点
  • Golang mgo大于和小于时间戳
  • Go无法创建RabbitMQ频道。 Docker容器上的RabbitMQ服务器,主机上的Go脚本
  • Go-使用xgo库与CGO交叉编译
  • 如何通过Golang中的http连接访问net.conn?

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

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

友情链接:代码精华