ProtectedData.Unprotect (DPAPI) stops working after password change

前端 未结 1 963
小蘑菇
小蘑菇 2020-12-18 01:10

Suppose I encrypt data and write it to a file like this:

byte[] encrypted =
    ProtectedData.Protect(plain, null, DataProtectionScope.CurrentUser);
File.Wri         


        
相关标签:
1条回答
  • 2020-12-18 01:30

    How do you change the password? Using the normal procedure and specifying the old password should work with ProtectedData, while setting a new password under computer management wouldn't.

    Set Password dialog with warning

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