SecurityServices for .NET 2.0 Documentation

StringEncryption.Encrypt Method (String, Encoding)

[This is preliminary documentation and subject to change.]

Encrypts a given string.

public string Encrypt(
   String input,
   Encoding encoding
);

Parameters

String
The string to encrypt.
Encoding
The encoding to use to convert the string to an array of bytes.

Return Value

A string representation of the encrypted data.

Exceptions

Exception Type Condition
ArgumentNullException input or encoding is a null reference.

See Also

StringEncryption Class | Org.Mentalis.SecurityServices.Cryptography Namespace | StringEncryption.Encrypt Overload List