Gets/Sets the preferred symmetric key algorithm used by all methods that produce encrypted OpenPGP messages (Encrypt, SignAndEncrypt).

Changes to this property have effect on subsequent calls of encryption methods

Namespace: DidiSoft.Pgp
Assembly: DidiSoft.Pgp (in DidiSoft.Pgp.dll) Version: 1.7.3.35547

Syntax

C#
public CypherAlgorithm Cypher { get; set; }
Visual Basic
Public Property Cypher As CypherAlgorithm
	Get
	Set
Visual C++
public:
property CypherAlgorithm Cypher {
	CypherAlgorithm get ();
	void set (CypherAlgorithm value);
}

Remarks

Default is CAST5

Examples

This example demonstrates how to change the preferred cipher algorithm used by the library.
CopyC#
PGPLib pgp = new PGPLib();
pgp.Cypher = CypherAlgorithm.TRIPLE_DES;
CopyVB.NET
Dim pgp As New PGPLib()
pgp.Cypher = CypherAlgorithm.TRIPLE_DES

See Also