SecurityServices for .NET 2.0 Documentation

StringEncryption.EncryptMethod(String)

[This is preliminary documentation and subject to change.]

Encrypts a given string.

publicstringEncrypt(
Stringinput
);

Parameters

String
The string to encrypt.

Return Value

A string representation of the encrypted data.

Remarks

The default encoding to convert the input string to an array of bytes is UTF-8.

Exceptions

Exception Type Condition
ArgumentNullException input is a null reference.

See Also

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