你好!
pgsodium (https://github.com/michelp/pgsodium) 2.0.0 是一个 Postgres 扩展,使用 libsodium (https://doc.libsodium.org/) 库为 PostgreSQL 10+ 提供高性能的现代加密支持。
2.0.0 版本包含大量新功能和若干缺陷修复:
支持 XChaCha20-SIV (https://github.com/jedisct1/libsodium-xchacha20-siv) 确定性无 nonce 加密
支持 SignCryption (https://github.com/jedisct1/libsodium-signcryption) 签名与加密身份验证
HMACSHA 512/256、generichash 和 shorthash 的密钥 ID 支持
支持底层 XChaCha20 流式加密 (https://libsodium.gitbook.io/doc/advanced/stream_ciphers/xchacha20)
更多测试、文档以及参数解析方面的小缺陷修复
内存中的密钥现在通过 sodium_malloc (https://libsodium.gitbook.io/doc/memory_management) 进行保护
请访问以下链接查看:
https://github.com/michelp/pgsodium (https://github.com/michelp/pgsodium)
如有任何问题欢迎提交 issue,也非常欢迎 pull request!