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,
	Encoding encoding
)
Visual Basic
Public Function Encrypt ( _
	input As String, _
	encoding As Encoding _
) As String
Visual C++
public:
String^ Encrypt(
	String^ input, 
	Encoding^ encoding
)

Parameters

input
Type: System..::..String
The string to encrypt.
encoding
Type: System.Text..::..Encoding
The encoding to use to convert the string to an array of bytes.

Return Value

A string representation of the encrypted data.

Exceptions

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

See Also