Encrypts a given string.

Namespace: LLCryptoLib.Security.Cryptography
Assembly: LLCryptoLib (in LLCryptoLib.dll) Version: 2.0.1024.0 (2.0.1024)

Syntax

C#
public string Encrypt(
	string input
)
Visual Basic
Public Function Encrypt ( _
	input As String _
) As String
Visual C++
public:
String^ Encrypt(
	String^ input
)

Parameters

input
Type: System..::..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

ExceptionCondition
System..::..ArgumentNullExceptioninput is a null reference.

See Also