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

前端 未结 9 2182
时光取名叫无心
时光取名叫无心 2021-02-12 12:29

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:03

    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.

提交回复
热议问题