SecurityServices for .NET 2.0 Documentation

StringEncryption.EncryptMethod(String, Encoding)

[This is preliminary documentation and subject to change.]

Encrypts a given string.

publicstringEncrypt(
Stringinput,
Encodingencoding
);

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