Encrypting passwords in WinForms app.config, .NET

后端 未结 2 549
别跟我提以往
别跟我提以往 2020-12-09 13:17

I want to store a password in a config file but i would like it to be encrypted so that in the app it can be read, decrypted and used. What\'s the best way to encrypt a pass

相关标签:
2条回答
  • 2020-12-09 13:25

    You can use DpapiProtectedConfigurationProvider

    See this links .

    Encrypting .NET configuration files through code

    Implementing Protected Configuration With Windows Apps

    Encrypting Passwords in a .NET app.config File

    Bye.

    0 讨论(0)
  • 2020-12-09 13:51

    Encrypting Passwords in a .NET app.config File

    0 讨论(0)
提交回复
热议问题