发布于 2017-03-13 23:52:52 | 188 次阅读 | 评论: 0 | 来源: 网友投递

这里有新鲜出炉的精品教程,程序狗速度看过来!

libsodium 加密库

libsodium 是一个先进而且易用的加密库。主要用于加密、解密、签名和生成密码哈希等等。这是一个可移植的、跨编译器支持、可安装的,基于 NaCI 开发,提供一个兼容 API。


Libsodium 1.0.12 发布了,

本次发布更新内容如下:

  • Ed25519ph was implemented, adding a multi-part signature API (crypto_sign_init()crypto_sign_update()crypto_sign_final_*()).

  • New constants and related accessors have been added for Scrypt and Argon2.

  • XChaCha20 has been implemented. Like XSalsa20, this construction extends the ChaCha20 cipher to accept a 192-bit nonce. This makes it safe to use ChaCha20 with random nonces.

  • crypto_secretboxcrypto_box and crypto_aead now offer variants leveraging XChaCha20.

  • SHA-2 is about 20% faster, which also gives a speed boost to signature and signature verification.

  • AVX2 implementations of Salsa20 and ChaCha20 have been added. They are twice as fast as the SSE2 implementations. The speed gain is even more significant on Windows, that previously didn't use vectorized implementations.

  • New high-level API: crypto_kdf, to easily derive one or more subkeys from a master key.

  • Siphash with a 128-bit output has been implemented, and is available as crypto_shorthash_siphashx_*.

  • New *_keygen() helpers functions have been added to create secret keys for all constructions. This improves code clarity and can prevent keys from being partially initialized.

  • A new randombytes_buf_deterministic() function was added to deterministically fill a memory region with pseudorandom data. This function can especially be useful to write reproducible tests.

  • A preliminary crypto_kx_*() API was added to compute shared session keys.

  • AVX2 detection is more reliable.

  • The pthreads library is not required any more when using MingW.

  • contrib/Findsodium.cmake was added as an example to include libsodium in a project using cmake.

  • Compatibility with gcc 2.x has been restored.

  • Minimal builds can be checked using sodium_library_minimal().

  • The --enable-opt compilation switch has become compatible with more platforms.

  • Android builds are now using clang on platforms where it is available.

下载地址:



历史版本 :
加密库 libsodium 1.0.16 发布,包含性能改进
加密库 libsodium 1.0.15 发布,引入一些不兼容的变更
Libsodium 1.0.13 发布,易用的加密库
Libsodium 1.0.12 发布,易用的加密库
Libsodium 1.0.12 发布,易用的加密库
Libsodium 1.0.11 发布,加密库
libsodium 1.0.10 发布,加密库
libsodium 1.0.9 发布,加密库
libsodium 1.0.8 发布,加密库
libsodium 1.0.7 发布,加密库
libsodium 1.0.6 发布,加密库
libsodium 1.0.5 发布,加密库
最新网友评论  共有(0)条评论 发布评论 返回顶部

Copyright © 2007-2017 PHPERZ.COM All Rights Reserved   冀ICP备14009818号  版权声明  广告服务