Rijndael256DecryptBytes256Bit Method (String, String, String, Int32, Int32, String, String) |
Decrypts base64 encoded string to byte array
Namespace: TreeksLicensingLibraryAssembly: TreeksLicensingLibrary (in TreeksLicensingLibrary.dll) Version: 1.3.5562.40448
Syntax public static byte[] DecryptBytes256Bit(
string cipherText,
string passPhrase,
string saltValue = "DSFdsjdrgse6345Z6Rdfsgb534Z6TafsdgSDF5534ESERT4G6fgfhRYXGB",
int keySize = 256,
int passwordIterations = 7321,
string initVector = "NMB2GMA4154887H8",
string hashAlgorithm = "SHA1"
)
Public Shared Function DecryptBytes256Bit (
cipherText 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 Byte()
public:
static array<unsigned char>^ DecryptBytes256Bit(
String^ cipherText,
String^ passPhrase,
String^ saltValue = L"DSFdsjdrgse6345Z6Rdfsgb534Z6TafsdgSDF5534ESERT4G6fgfhRYXGB",
int keySize = 256,
int passwordIterations = 7321,
String^ initVector = L"NMB2GMA4154887H8",
String^ hashAlgorithm = L"SHA1"
)
static member DecryptBytes256Bit :
cipherText : 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"
*)
-> byte[]
Parameters
- cipherText
- Type: SystemString
Base64 encoced input string - 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:
ByteByte array
Remarks See Also