发布于 2017-07-16 00:18:52 | 166 次阅读 | 评论: 0 | 来源: 网友投递
libsodium 加密库
libsodium 是一个先进而且易用的加密库。主要用于加密、解密、签名和生成密码哈希等等。这是一个可移植的、跨编译器支持、可安装的,基于 NaCI 开发,提供一个兼容 API。
Libsodium 1.0.13 已发布,新版现在可以在 NuGet 上使用,以及其他的一些变更,详细如下:
Javascript: the sumo builds now include all symbols. They were previously limited to symbols defined in minimal builds.
The public crypto_pwhash_argon2i_MEMLIMIT_MAX
constant was incorrectly defined on 32-bit platforms. This has been fixed.
Version 1.0.12 didn't compile on OpenBSD/i386 using the base gcc compiler. This has been fixed.
The Android compilation scripts have been updated for NDK r14b.
armv7s-optimized code was re-added to iOS builds.
An AVX2 optimized implementation of the Argon2 round function was added.
The Argon2id variant of Argon2 has been implemented. The high-level crypto_pwhash_str_verify()
function automatically detects the algorithm and can verify both Argon2i and Argon2id hashed passwords.
The default algorithm for newly hashed passwords remains Argon2i in this version to avoid breaking compatibility with verifiers running libsodium <= 1.0.12.
A crypto_box_curve25519xchacha20poly1305_seal*()
function set was implemented.
scrypt was removed from minimal builds.
libsodium is now available on NuGet.