Specifies a symmetric encryption (cipher) algorithm.
Namespace:
DidiSoftAssembly: PGPLib (in PGPLib.dll) Version: 1.6.3.19546
Syntax
| C# |
|---|
public enum CypherAlgorithm |
| Visual Basic (Declaration) |
|---|
Public Enumeration CypherAlgorithm |
| Visual C++ |
|---|
public enum class CypherAlgorithm |
Members
| Member name | Description | |
|---|---|---|
| TRIPLE_DES |
Triple DES. 168 bit cipher involving three applications of the DES algorithm */
| |
| CAST5 |
CAST 5 (Default). 128 bit cipher used since PGP 5.0
| |
| BLOWFISH |
Blowfish
| |
| AES_128 |
128 bit AES (Rijndael)
| |
| AES_192 |
192 bit AES (Rijndael)
| |
| AES_256 |
256 bit AES (Rijndael)
| |
| TWOFISH |
Twofish. 256-bit variant of former AES version
| |
| DES |
DES
| |
| SAFER |
SAFER
| |
| IDEA |
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