Click or drag to resize

BlowfishEncrypt(Byte, Byte, Mode, Byte) Method

Encrypt data in byte array

Namespace: CryptoSysAPI
Assembly: diCrSysAPINet (in diCrSysAPINet.dll) Version: 6.22.2.24248 (6.22.2.0)
Syntax
public static byte[] Encrypt(
	byte[] input,
	byte[] key,
	Mode mode,
	byte[] iv
)

Parameters

input  Byte
Input data
key  Byte
Key of length between 1 and 56 bytes (448 bits)
mode  Mode
Cipher Mode
iv  Byte
IV of exactly 8 bytes or null/Nothing for ECB mode

Return Value

Byte
Ciphertext in byte array or empty array on error
Remarks
For ECB and CBC modes, input data length must be an exact multiple of the block length (8 bytes)
See Also