ProtectedDataCookieTransform.Encode Method (Byte[])

.NET Framework (current version)
 

Protects (encrypts) the specified data.

Namespace:   System.IdentityModel
Assembly:  System.IdentityModel (in System.IdentityModel.dll)

public override byte[] Encode(
	byte[] value
)

Parameters

value
Type: System.Byte[]

The data to be protected (encrypted).

Return Value

Type: System.Byte[]

The protected (encrypted) data.

Exception Condition
ArgumentNullException

value is null.

ArgumentException

value contains zero bytes.

.NET Framework
Available since 4.5
Return to top
Show: