So I am trying to encrypt my files and authentication password. I am currently using (A)Password Derived Byte[], (B)Clear Byte[] and a strong (C)string to encrypt it.
In my program, I hardcoded the (A)Password Derived in there. I also harcoded a (B)Encrypted version of Clear Byte[] and a (C)Encrypted version of string.
To decrypt my file/password, I must: 1. Decrypt Encrypted version of (B)Clear Byte[] using (A)Password Byte. 2. Decrypt Encrypted version of (C)String using (A)Password Byte. 3. Use the (B) Clear Byte, (C) Clear string to decrypt the file/password.
If this is not a good practice, could someone please provide me suggestions/methods I should use ? I am developing it in c#