Specifies a symmetric encryption (cipher) algorithm.
Namespace: DidiSoft.PgpAssembly: DidiSoft.Pgp (in DidiSoft.Pgp.dll) Version: 1.7.3.35547
Syntax
| C# |
|---|
public enum CypherAlgorithm |
| Visual Basic |
|---|
Public Enumeration CypherAlgorithm |
| Visual C++ |
|---|
public enum class CypherAlgorithm |
Members
| Member name | Value | Description | |
|---|---|---|---|
| TRIPLE_DES | 0 | Triple DES. 168 bit cipher involving three applications of the DES algorithm */ | |
| CAST5 | 1 | CAST 5 (Default). 128 bit cipher used since PGP 5.0 | |
| BLOWFISH | 2 | Blowfish | |
| AES_128 | 3 | 128 bit AES (Rijndael) | |
| AES_192 | 4 | 192 bit AES (Rijndael) | |
| AES_256 | 5 | 256 bit AES (Rijndael) | |
| TWOFISH | 6 | Twofish. 256-bit variant of former AES version | |
| DES | 7 | DES | |
| SAFER | 8 | SAFER | |
| IDEA | 9 | IDEA |
Examples
This example demonstrates how to specify the preferred cipher algorithm used by the library.
CopyC#
CopyVB.NET
PGPLib pgp = new PGPLib();
pgp.Cypher = CypherAlgorithm.TRIPLE_DES;Dim pgp As New PGPLib() pgp.Cypher = CypherAlgorithm.TRIPLE_DES