Rijndael256.iDecryptBytes256Bit Method (Byte[], String, String, Int32, Int32, String, String) |
Decrypts encrypted byte array
Namespace: TreeksLicensingLibraryAssembly: TreeksLicensingLibrary (in TreeksLicensingLibrary.dll) Version: 1.3.5562.40448
Syntaxpublic byte[] iDecryptBytes256Bit(
byte[] cipherBytes,
string passPhrase,
string saltValue = "DSFdsjdrgse6345Z6Rdfsgb534Z6TafsdgSDF5534ESERT4G6fgfhRYXGB",
int keySize = 256,
int passwordIterations = 7321,
string initVector = "NMB2GMA4154887H8",
string hashAlgorithm = "SHA1"
)
Public Function iDecryptBytes256Bit (
cipherBytes As Byte(),
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:
array<unsigned char>^ iDecryptBytes256Bit(
array<unsigned char>^ cipherBytes,
String^ passPhrase,
String^ saltValue = L"DSFdsjdrgse6345Z6Rdfsgb534Z6TafsdgSDF5534ESERT4G6fgfhRYXGB",
int keySize = 256,
int passwordIterations = 7321,
String^ initVector = L"NMB2GMA4154887H8",
String^ hashAlgorithm = L"SHA1"
)
member iDecryptBytes256Bit :
cipherBytes : byte[] *
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
- cipherBytes
- Type:System.Byte[]
Encrypted bytes - passPhrase
- Type: System.String
Password - saltValue (Optional)
- Type: System.String
Rijndael salt - keySize (Optional)
- Type: System.Int32
Rijndael key size - passwordIterations (Optional)
- Type: System.Int32
Rijndael iterations - initVector (Optional)
- Type: System.String
Rijndael initalization vector - hashAlgorithm (Optional)
- Type: System.String
Hash algorithm to use
Return Value
Type:
Byte[]Plain byte array
RemarksYou don't have to create instance of Rijndael256 object. This is here to provide support for non .NET applications using COM model, which does not support static class members.
See Also