我试图用用户提供的密码在.NET中实现一些数据加密。正如我所理解的那样,我用一个系统密钥加密文件,并用用户生成的另一个密钥加密这个密钥。这意味着密码更改不需要更改数据,只需要对加密密钥进行更新。在测试AES函数时,我可以加密我的256位密钥,但解密时我只能从.NET得到头16个字节:
public static byte
以下是这里提供的答案:public static void DeriveKeyPair(string pass, byte[] salt) using (var derivedCan't seem to find an asymmetric implementation that I can supply the seed to}
忽略了返回类型不会做任何有用的事情这一事实,我遇到的最大问题是,我似乎找不到一个非对称的密码提供者,我既不能种子,也