Early Preview
This is currently very much a preview. Please feel free to try things out,
but don't be upset if anything is not yet working. Feedback is welcome over on our
GitHub Dicussions page.
interface Microsoft.​AspNetCore.​DataProtection.​IDataProtector
Assembly: Microsoft.AspNetCore.DataProtection.Abstractions
Implemented Interfaces
An interface that can provide data protection services.
Methods
byte[]
Protect​(byte[] plaintext)
Cryptographically protects a piece of plaintext data.
Returns The protected form of the plaintext data.
plaintext
The plaintext data to protect.
byte[]
Unprotect​(byte[] protectedData)
Cryptographically unprotects a piece of protected data.
Returns The plaintext form of the protected data.
protectedData
The protected data to unprotect.