现代密码算法

2018-06-26  本文已影响0人  akka9

对称加密算法:

用法示例:
https://github.com/Spomky-Labs/php-aes-gcm
https://github.com/cryptosphere/rbnacl/wiki/Secret-Key-Encryption

单向加密算法:

以上算法可用于保存密码等用途,请停止使用 md5,sha1 等算法保存密码。

哈希算法

非对称加密

认证

加密

签名

随机数

从 /dev/urandom 中产生。

ref:
https://gist.github.com/byronhe/232d22f1d3dcaa0a20cb
http://gad.qq.com/article/detail/5430
https://cryptography.io/en/latest/hazmat/primitives/asymmetric/x25519/
https://eleet.im/

上一篇 下一篇

猜你喜欢

热点阅读