ITimeLimitedDataProtector.Protect(Byte[], DateTimeOffset) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Cryptographically protects a piece of plaintext data, expiring the data at the chosen time.
public:
cli::array <System::Byte> ^ Protect(cli::array <System::Byte> ^ plaintext, DateTimeOffset expiration);
public byte[] Protect (byte[] plaintext, DateTimeOffset expiration);
abstract member Protect : byte[] * DateTimeOffset -> byte[]
Public Function Protect (plaintext As Byte(), expiration As DateTimeOffset) As Byte()
Parameters
- plaintext
- Byte[]
The plaintext data to protect.
- expiration
- DateTimeOffset
The time when this payload should expire.
Returns
Byte[]
The protected form of the plaintext data.
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for