What is the easiest way to encrypt a password when I save it to the registry?

后端 未结 12 1910
小鲜肉
小鲜肉 2020-11-30 18:13

Currently I\'m writing it in clear text oops!, it\'s an in house program so it\'s not that bad but I\'d like to do it right. How should I go about encrypting this w

12条回答
  •  隐瞒了意图╮
    2020-11-30 18:25

    Like ligget78 said, DPAPI would be a good way to go for storing passwords. Check out the ProtectedData class on MSDN for example usage.

提交回复
热议问题