Best practices for encrypting and decrypting passwords? (C#/.NET)

前端 未结 9 1663
醉梦人生
醉梦人生 2021-02-12 12:26

I need to store and encrypt a password in a (preferably text) file, that I later need to be able to decrypt. The password is for another service that I use, and needs to be sent

9条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-02-12 13:15

    Since you must send the password in unencrypted form over the network, there is nothing you can do to protect it 100%.

    AES is good enough if you need to store locally, and talking about disasms, network sniffers etc is not particulary good contra-argument becuase the same thing can be done with any program (sure, ASM is harder then CIL but its a minior point).

    Such password protecting is good enough to prevent casual pick up, not to prevent decoding by proffesionals.

提交回复
热议问题