Click or drag to resize
Rijndael256EncryptBytes256Bit Method
Encrypts bytes with Rijndael

Namespace: TreeksLicensingLibrary
Assembly: 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
)

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: Object
Byte array or base 64 string base on ReturnBase64String parameter.
Remarks