RsaEncryptionCookieTransform.Encode Method (Byte[])

.NET Framework (current version)
 

Encodes the specified data. The data is encrypted using the default encryption algorithm (AES-256), then the AES key is encrypted using RSA and the RSA public key is appended.

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

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

Parameters

value
Type: System.Byte[]

The data to encode

Return Value

Type: System.Byte[]

The encoded data

Exception Condition
ArgumentNullException

value is null.

ArgumentException

value contains zero bytes.

InvalidOperationException

The EncryptionKey is null.

.NET Framework
Available since 4.5
Return to top
Show: