Rijndael256EncryptBytes256Bit Method |
Encrypts bytes with Rijndael
Namespace: TreeksLicensingLibraryAssembly: TreeksLicensingLibrary (in TreeksLicensingLibrary.dll) Version: 1.3.5562.40448
Syntax public static Object EncryptBytes256Bit(
byte[] plainBytes,
string passPhrase,
string saltValue = "DSFdsjdrgse6345Z6Rdfsgb534Z6TafsdgSDF5534ESERT4G6fgfhRYXGB",
int keySize = 256,
int passwordIterations = 7321,
string initVector = "NMB2GMA4154887H8",
string hashAlgorithm = "SHA1",
bool ReturnBase64String = true
)
Public Shared Function EncryptBytes256Bit (
plainBytes 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",
Optional ReturnBase64String As Boolean = true
) As Object
public:
static Object^ EncryptBytes256Bit(
array<unsigned char>^ plainBytes,
String^ passPhrase,
String^ saltValue = L"DSFdsjdrgse6345Z6Rdfsgb534Z6TafsdgSDF5534ESERT4G6fgfhRYXGB",
int keySize = 256,
int passwordIterations = 7321,
String^ initVector = L"NMB2GMA4154887H8",
String^ hashAlgorithm = L"SHA1",
bool ReturnBase64String = true
)
static member EncryptBytes256Bit :
plainBytes : byte[] *
passPhrase : string *
?saltValue : string *
?keySize : int *
?passwordIterations : int *
?initVector : string *
?hashAlgorithm : string *
?ReturnBase64String : bool
(* 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"
let _ReturnBase64String = defaultArg ReturnBase64String true
*)
-> Object
Parameters
- plainBytes
- Type: SystemByte
Bytes to encrypt - 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 - ReturnBase64String (Optional)
- Type: SystemBoolean
If set to true, function returns base64 string. When false, byte array is returned.
Return Value
Type:
ObjectByte array or base 64 string base on ReturnBase64String parameter.
Remarks See Also