分享
  1. 首页
  2. 主题
  3. 每日资讯

go-dongle v1.2.0 发布,新增 SM2 非对称椭圆曲线加密算法支持

gouguoyin · · 89 次点击 · 开始浏览 置顶

`dongle` 是一个轻量级、语义化、对开发者友好的 Golang 密码库,`100%` 单元测试覆盖率,已被 [awesome-go](https://github.com/avelino/awesome-go#security "awesome-go") 收录,并获得 [gitee](https://gitee.com "gitee") 2024 年最有价值项目([GVP](https://gitee.com/gcp "GVP"))和 [gitcode](https://gitcode.com "gitcode") 2024 年度 [G-Star](https://gitcode.com/g-star "G-Star") 项目,如果您觉得不错,请给个 star 吧 ![](https://dongle.go-pkg.com/gvp.jpg) ![](https://dongle.go-pkg.com/gstar.jpg) docs: [dongle.go-pkg.com](https://dongle.go-pkg.com/zh "dongle.go-pkg.com") playground : [tools.go-pkg.com](https://tools.go-pkg.com "tools.go-pkg.com") github:[github.com/dromara/dongle](https://github.com/dromara/dongle "github.com/dromara/dongle") gitee: [gitee.com/dromara/dongle](https://gitee.com/dromara/dongle "gitee.com/dromara/dongle") gitcode: [gitcode.com/dromara/dongle](https://gitcode.com/dromara/dongle "gitcode.com/dromara/dongle") **更新日志** * 移除 `RSAKeyPair` 结构体的 `LoadPublicKey` 和 `LoadPrivateKey` 方法 * 移除 `Ed25519KeyPair` 结构体的 `LoadPublicKey` 和 `LoadPrivateKey` 方法 * 优化编码器和解码器性能,重用读缓冲区,减少内存分配和复制 * `RSAKeyPair` 结构体的 `GenKeyPair`, `SetPublicKey`, `SetPrivateKey` 方法从无返回值改为返回 `error` * `Ed25519KeyPair` 结构体的 `GenKeyPair`, `SetPublicKey`, `SetPrivateKey` 方法从无返回值改为返回 `error` * `RSAKeyPair` 结构体增加 `FormatPublicKey` 和 `FormatPrivateKey` 方法,用于将 `base64` 编码的 `der` 格式的 `RSA` 公钥和私钥格式化成 `pem` 格式 * `Ed25519KeyPair` 结构体增加 `FormatPublicKey`和 `FormatPrivateKey` 方法,用于将 `base64` 编码的 `der` 格式的 `Ed25519` 公钥和私钥格式化成 `pem` 格式 * `RSAKeyPair` 结构体增加 `CompressPublicKey` 和 `CompressPrivateKey` 方法,用于将 `pem` 格式的 `RSA` 公钥和私钥压缩成经过 `base64` 编码的 `der` 格式 * `Ed25519KeyPair` 结构体增加 `CompressPublicKey`和 `CompressPrivateKey` 方法,用于将 `pem` 格式的 `Ed25519` 公钥和私钥压缩成经过 `base64` 编码的 `der` 格式 * 增加 `Sm2` 非对称椭圆曲线加密算法支持,包括标准处理和流式处理

有疑问加站长微信联系(非本文作者)

入群交流(和以上内容无关):加入Go大咖交流群,或添加微信:liuxiaoyan-s 备注:入群;或加QQ群:692541889

关注微信
89 次点击
暂无回复
添加一条新回复 (您需要 后才能回复 没有账号 ?)
  • 请尽量让自己的回复能够对别人有帮助
  • 支持 Markdown 格式, **粗体**、~~删除线~~、`单行代码`
  • 支持 @ 本站用户;支持表情(输入 : 提示),见 Emoji cheat sheet
  • 图片支持拖拽、截图粘贴等方式上传

用户登录

没有账号?注册
(追記) (追記ここまで)

今日阅读排行

    加载中
(追記) (追記ここまで)

一周阅读排行

    加载中

关注我

  • 扫码关注领全套学习资料 关注微信公众号
  • 加入 QQ 群:
    • 192706294(已满)
    • 731990104(已满)
    • 798786647(已满)
    • 729884609(已满)
    • 977810755(已满)
    • 815126783(已满)
    • 812540095(已满)
    • 1006366459(已满)
    • 692541889

  • 关注微信公众号
  • 加入微信群:liuxiaoyan-s,备注入群
  • 也欢迎加入知识星球 Go粉丝们(免费)