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

前端 未结 9 1679
醉梦人生
醉梦人生 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 12:55

    Do not store the password as part of the code. Aside from the issues of decompilation and relying on security through obscurity, if you change the password you need to recompile and redistribution your application.

    Store the password as a webservice or in a database that the application has access to. You're communicating with a service over the web, so you will be connected, after all.

提交回复
热议问题