TripleDES: Specified key is a known weak key for 'TripleDES' and cannot be used

后端 未结 8 1336
时光说笑
时光说笑 2020-12-29 10:45

I\'m using the .NET 3.0 class System.Security.Cryptography.MACTripleDES class to generate a MAC value. Unfortunately, I am working with a hardware device that

8条回答
  •  既然无缘
    2020-12-29 11:20

    I'm not a security expert but wouldn't XORing your key with another value be enough to satisfy the sanity check? You could do this for your debug version (with proper IFDEF) so you can do proper checking and remove it for your release or production version where the key would be strong enough.

提交回复
热议问题