Cypher for .net

BytesExtension..::..AsDecryptFromBytes Method (array<Byte>[]()[][], KeyRing)

returns a string as encrypted bytes.

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

Syntax


public static byte[] AsDecryptFromBytes(
	byte[] bytes,
	KeyRing pgp
)

Parameters

bytes
Type: array<Byte>[]()[][]
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