uses the AES FIPS-140 compliant algorithm to encrypt a string

Namespace: DotNetNuke.Security
Assembly: DotNetNuke (in DotNetNuke.dll)

Syntax

C#
public static string EncryptAES(
	string plainText,
	string passPhrase,
	string salt,
	int iterations = 1000
)
Visual Basic
Public Shared Function EncryptAES ( 
	plainText As String,
	passPhrase As String,
	salt As String,
	Optional iterations As Integer = 1000
) As String

Parameters

plainText
Type: System..::..String
the text to encrypt
passPhrase
Type: System..::..String
the pass phase to do the encryption
salt
Type: System..::..String
a salt value to ensure ciphertext using the same text/password is different
iterations
Type: System..::..Int32
number of iterations to derive the key (higher is slower but more secure) - optional parameter with a default of 1000

Return Value

returnsM:DotNetNuke.Security.FIPSCompliant.EncryptAES(System.String,System.String,System.String,System.Int32)

See Also