Cypher for .net

BytesExtension..::..AsEncryptedBytes Method (String, KeyRing)

returns a string as encrypted bytes.

Namespace:  System.Text
Assembly:  Walter.Cypher (in Walter.Cypher.dll)

Syntax


public static byte[] AsEncryptedBytes(
	string text,
	KeyRing pgp
)

Parameters

text
Type: String
The text.
pgp
Type: Walter.Cypher.PGP..::..KeyRing
The PGP.

Return Value

System.Byte[].

Exceptions


ExceptionCondition
[System.Security.Cryptography.CryptographicException]certificate specified in the pgp key doesn't have a public key

Remarks


Size of the string doesn't really matter