System.Security.Cryptography.Xml.EncryptedKey Class

Represents the <EncryptedKey> element in XML encryption. This class cannot be inherited.

See Also: EncryptedKey Members


public sealed class EncryptedKey : EncryptedType


This class represents the <EncryptedKey> element in XML encryption. The <EncryptedKey> element is used to send encryption keys. It can be created in a stand-alone XML document, be placed within an application document, or be inside an <EncryptedData> element as a child of a <KeyInfo> element. The key value is always encrypted to the recipient. When <EncryptedKey> is decrypted, the resulting key is made available to the <EncryptionMethod> algorithm without any additional processing.

The <EncryptedKey> element is similar to the <EncryptedData> element of the System.Security.Cryptography.Xml.EncryptedData class except that the data encrypted is always a key value.


Namespace: System.Security.Cryptography.Xml
Assembly: System.Security (in System.Security.dll)
Assembly Versions:,
Since: .NET 2.0