【发布时间】:2012-03-03 19:34:19
【问题描述】:
我在 C# 中有以下代码
PasswordDeriveBytes DerivedPassword = new PasswordDeriveBytes(Password, SaltValueBytes,
HashAlgorithm, PasswordIterations);
byte[] KeyBytes = DerivedPassword.GetBytes(32);
.Net 的PasswordDeriveBytes 使用PBKDF1。我正在使用“SHA1”哈希算法生成 32 字节密钥。
请告诉我如何在 crypto++ 中实现这一点。在使用 PBKDF2 的 crypto++ 中,它生成 20 字节的密钥。如何制作 C# 生成的 32 字节密钥。
【问题讨论】:
标签: c++ cryptography crypto++ pbkdf2