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

如何在Go中实现rsa-sha256?

I'm tryign to implement http-signature in go and starting by implementing rsa-sha256 and I'm nog getting the correct value out. So I'm doing something wrong.

I'm using this example data set https://github.com/joyent/node-http-signature/blob/master/http_signing.md#appendix-a---test-values

Here is my code: Go Playground

As you can se I get another hashed result than expected. What am I doing wrong?

近期文章

  • 如何从Node正确终止Go进程
  • 如何全局访问处理程序值
  • Golang用随机密钥解组json
  • 如何在Google Go中为QuickBooks API调用正确添加OAuth标头
  • 在PayPal中创建客户
  • 如何在Fprintf输出中添加正文标题?
  • 为什么io.EOF不是常数?
  • 向进程发送信号后是否有等待的方法?
  • 使用Redis作为Docker容器之间的链接
  • 如何同时优化大型递归任务
  • 我可以使用嵌套接口模拟出库代码吗? [重复]
  • 执行二进制代码
  • 将RGBA转换为NRGBA
  • Golang OpenGL错误PlatformError:X11:DISPLAY环境变量缺少紧急信息:NotInitialized:GLFW库未初始化
  • big.Int和* big.Int之间的区别,以及如何通过值传递big.Int
  • 格思如何保持区块链地位?
  • 通过堆栈管理和提供html / template数据绑定
  • 错误在Windows上使用gcc进行构建
  • Go闭包如何布置在内存中?
  • 从Golang中的C函数返回字符串

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

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

友情链接:代码精华