WALTER | Workable Algorithms for Location-aware Transmission, Encryption Response

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

returns a string as encrypted bytes.

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

Syntax


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

Parameters

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

Return Value

System.Byte[].

Exceptions


ExceptionCondition
CryptographicExceptioncertificate specified in the pgp key doesn't have a public key

Remarks


Size of the string doesn't really matter