IDataProtector.Protect(Byte[]) Method

Definition

Cryptographically protects a piece of plaintext data.

public:
 cli::array <System::Byte> ^ Protect(cli::array <System::Byte> ^ plaintext);
public byte[] Protect (byte[] plaintext);
abstract member Protect : byte[] -> byte[]
Public Function Protect (plaintext As Byte()) As Byte()

Parameters

plaintext
Byte[]

The plaintext data to protect.

Returns

Byte[]

The protected form of the plaintext data.

Applies to