Rijndael256EncryptString256Bit Method |
Encrypts string with specified password.
Namespace: TreeksLicensingLibraryAssembly: TreeksLicensingLibrary (in TreeksLicensingLibrary.dll) Version: 1.3.5562.40448
Syntax public static string EncryptString256Bit(
string plainText,
string passPhrase,
string saltValue = "DSFdsjdrgse6345Z6Rdfsgb534Z6TafsdgSDF5534ESERT4G6fgfhRYXGB",
int keySize = 256,
int passwordIterations = 7321,
string initVector = "NMB2GMA4154887H8",
string hashAlgorithm = "SHA1"
)
Public Shared Function EncryptString256Bit (
plainText As String,
passPhrase As String,
Optional saltValue As String = "DSFdsjdrgse6345Z6Rdfsgb534Z6TafsdgSDF5534ESERT4G6fgfhRYXGB",
Optional keySize As Integer = 256,
Optional passwordIterations As Integer = 7321,
Optional initVector As String = "NMB2GMA4154887H8",
Optional hashAlgorithm As String = "SHA1"
) As String
public:
static String^ EncryptString256Bit(
String^ plainText,
String^ passPhrase,
String^ saltValue = L"DSFdsjdrgse6345Z6Rdfsgb534Z6TafsdgSDF5534ESERT4G6fgfhRYXGB",
int keySize = 256,
int passwordIterations = 7321,
String^ initVector = L"NMB2GMA4154887H8",
String^ hashAlgorithm = L"SHA1"
)
static member EncryptString256Bit :
plainText : string *
passPhrase : string *
?saltValue : string *
?keySize : int *
?passwordIterations : int *
?initVector : string *
?hashAlgorithm : string
(* Defaults:
let _saltValue = defaultArg saltValue "DSFdsjdrgse6345Z6Rdfsgb534Z6TafsdgSDF5534ESERT4G6fgfhRYXGB"
let _keySize = defaultArg keySize 256
let _passwordIterations = defaultArg passwordIterations 7321
let _initVector = defaultArg initVector "NMB2GMA4154887H8"
let _hashAlgorithm = defaultArg hashAlgorithm "SHA1"
*)
-> string
Parameters
- plainText
- Type: SystemString
String to be encrypted - passPhrase
- Type: SystemString
Password - saltValue (Optional)
- Type: SystemString
Rijndael salt - keySize (Optional)
- Type: SystemInt32
Rijndael key size - passwordIterations (Optional)
- Type: SystemInt32
Rijndael iterations - initVector (Optional)
- Type: SystemString
Rijndael initalization vector - hashAlgorithm (Optional)
- Type: SystemString
Hash algorithm to use
Return Value
Type:
StringEncrypted string
Remarks See Also