Xceed Encryption Library Documentation
About the XceedRSAEncryptionMethod object
Xceed Encryption control reference > Encryption Method objects > About the XceedRSAEncryptionMethod object

Description

This Encryption Method object represents the RSA public-key encryption algorithm.

How to use to generate a Public Key and a Private Key pair

Key pairs are always generated randomly at the same time. After you have either created an instance of the XceedRSAEncryptionMethod object or obtained one by reading the contents of the Xceed Encryption control's EncryptionMethod property, call the SetRandomKeyPair method. This method will place a Public Key in the PublicKey property and a Private Key in the PrivateKey property. You can now obtain the keys, store them or send them, or use them to encrypt or decrypt data.

How to use to encrypt data

After you have either created an instance of this object or obtained one by reading the contents of the Xceed Encryption control's EncryptionMethod property, you must set the PublicKey property with the recipient's Public Key and call any of the Xceed Encryption control's methods that will encrypt data.

The recipient is the only party that has the corresponding Private Key that can decrypt the data.

How to use to decrypt data

After you have either created an instance of this object or obtained one by reading the contents of the Xceed Encryption control's EncryptionMethod property, you must set the PrivateKey property with the Private Key to use to decrypt data and call any of the Xceed Encryption control's methods that will decrypt data.

Properties

Methods

COM interfaces

DXceedRSAEncryptionMethod (Default dual interface)

IXceedRSAEncryptionMethod

ProgID

Xceed.RSAEncryptionMethod.1