Securely store a password in program code?

后端 未结 5 1879
我在风中等你
我在风中等你 2021-01-02 03:12

My application makes use of the RijndaelManaged class to encrypt data. As a part of this encryption, I use a SecureString object loaded with a password which get\'s get con

5条回答
  •  孤城傲影
    2021-01-02 03:35

    It sounds to me like perhaps you should be using a PKI solution instead of encryption/decryption. If you have another application that needs to consume the encrypted data, then you could have a key pair for that application, and give the public key to the app that is doing the encryption. That way you are still keeping your data secure, but not introducing a bunch of additional code that ultimately doesn't give all that much protection.

    A quick google search gave me this Code Project article that talks about using the Windows Certificate Store in .Net

提交回复
热议问题