How to store passwords in Winforms application?

前端 未结 4 984
梦如初夏
梦如初夏 2020-11-30 22:44

I have some code like this in a winforms app I was writing to query a user\'s mail box Storage Quota.

DirectoryEntry mbstore = new DirectoryEntry(
      @\"L         


        
4条回答
  •  暖寄归人
    2020-11-30 23:20

    If you store it as a secure string and save the secure string to a file (possibly using Isolated Storage, the only time you will have a plain text password is when you decrypt it to create your mbstore. Unfortunately, the constructor does not take a SecureString or a Credential object.

提交回复
热议问题