我一直在寻找在维基的节点argon2在NPM,我来的时候解决这个理由使用argon2i作为默认模式包:
散列函数的变体。Argon2 有几个不同目标的变体:
argon2d is faster and highly resistant against GPU attacks, which is useful for cryptocurrency argon2i is slower and resistant against tradeoff attacks, which is preferred for password hashing and key derivation argon2id is a hybrid combination of the above, being resistant against GPU and tradeoff attacks
这个security.stackexchange 帖子表明侧通道攻击不是服务器上的一个大问题(我假设是这里的应用程序),而 argon2id 或 argon2d 会是更好的选择。
此外,声称 argon2i 更适合密码哈希,因为它的速度较慢似乎值得怀疑,因为可以针对任何模式调整迭代次数
“argon2i 速度较慢且可以抵抗权衡攻击,这是密码散列和密钥派生的首选”,这句话有道理吗?