1

We have been using Fortify tool to check for security vulnerabilities, Key Management: Hardcoded PBE Password issue giving hard time to fix.

Rfc2898DeriveBytes pdb = new Rfc2898DeriveBytes(EncryptionKey, new byte[] { 
0x49, 0x76,0x61, 0x6e, 0x20, 0x4d, 0x65, 0x64, 0x76, 0x65, 0x64, 0x65, 0x76 });

AND

using (var password = new Rfc2898DeriveBytes(PassPhrase, saltStringBytes, DerivationIterations))

I get StringCipher Class from this link Encrypting & Decrypting a String in C#

shady youssery
  • 430
  • 2
  • 17

0 Answers0