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

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

Syntax

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

Parameters

encryptedText
Type: System..::..String
the text to decrypt
passPhrase
Type: System..::..String
the pass phase to do the decryption
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.DecryptAES(System.String,System.String,System.String,System.Int32)

See Also