dongxixian7803 2019-07-04 08:11
浏览 1277

Golang中的java RSA / ECB / OAEPWithSHA 256AndMGF1Padding等效项

I'm trying to migrate some java encryption code into golang and came across this

Cipher cipher = Cipher.getInstance(RSA_ECB_OAEPWithSHA256AndMGF1Padding);
          cipher.init(Cipher.WRAP_MODE, cert);
          return cipher.wrap(key);

I'm trying to find any implementation of this in go. Any help would be appreciated. Thanks.

  • 写回答

1条回答 默认 最新

  • dongwang3066 2019-07-04 08:47
    关注

    Though the question is a bit unclear I think you want a way to encode data in Go. You might find it helpful to google about the following standard Go packages: crypto/hmac crypto/sha256 encoding/base64

    评论

报告相同问题?

悬赏问题

  • ¥50 comfyui下连接animatediff节点生成视频质量非常差的原因
  • ¥20 有关区间dp的问题求解
  • ¥15 多电路系统共用电源的串扰问题
  • ¥15 slam rangenet++配置
  • ¥15 有没有研究水声通信方面的帮我改俩matlab代码
  • ¥15 ubuntu子系统密码忘记
  • ¥15 信号傅里叶变换在matlab上遇到的小问题请求帮助
  • ¥15 保护模式-系统加载-段寄存器
  • ¥15 电脑桌面设定一个区域禁止鼠标操作
  • ¥15 求NPF226060磁芯的详细资料