About 213,000 results
Open links in new tab
  1. ProtectedData.Unprotect Method (System.Security.Cryptography)

    .NET Core and .NET 5+ only: Calls to the Unprotect method are supported on Windows operating systems only. The following code example shows how to use data protection. using …

  2. System.Security.Cryptography.ProtectedData.Unprotect is …

    Jul 5, 2011 · It is a symmetric encryption scheme, which means that data encrypted for a user cannot be decrypted by another user. It cannot be decrypted by the same user on a different …

  3. System.Security.Cryptography.ProtectedData 10.0.0

    System.Security.Cryptography.ProtectedData offers a simplified interface for utilizing Microsoft Windows DPAPI's CryptProtectData and CryptUnprotectData functions. Note: Since it relies …

  4. System.Security.Cryptography.ProtectedData.UnProtect error …

    Sep 4, 2023 · DPAPI ultimately relies on the current user credential to derive a hierarchy of secrets to protect the data. If these secrets can't be derived (password change, corruption, …

  5. ProtectedData Class (System.Security.Cryptography)

    The class consists of two wrappers for the unmanaged DPAPI, Protect and Unprotect. These two methods can be used to encrypt and decrypt data such as passwords, keys, and connection …

  6. ProtectedData.Unprotect Method Fails to Decrypt - Stack Overflow

    Jun 6, 2011 · The call to Unprotect, however, fails with the following message: "Key not valid for use in specified state.". According to the docs, this error can occur using impersonation, and …

  7. System.Security.Cryptography.ProtectedData 8.0.0

    Nov 14, 2023 · System.Security.Cryptography.ProtectedData offers a simplified interface for utilizing Microsoft Windows DPAPI's CryptProtectData and CryptUnprotectData functions. …

  8. ProtectedData.TryUnprotect Method (System.Security.Cryptography)

    Decrypts the data in a specified buffer and writes the decrypted data to a destination buffer.

  9. CryptographicException 'The data is invalid' for ProtectedData.Unprotect

    Jul 3, 2013 · ProtectedData.Unprotect(encryptedData, null, DataProtectionScope.LocalMachine); It all worked fine on the development machine, but something failed when I deployed the WCF …

  10. Protect & Unprotect API method: Windows SecureString

    May 22, 2025 · In the first part of this mini-series, we explored SecureStrings, how they are automatically encrypted on Windows, and how they remain unencrypted on Linux and macOS.