Click or drag to resize

BlowfishEncrypt(String, String, Mode, String) Method

Encrypt hex-encoded data string

Namespace: CryptoSysAPI
Assembly: diCrSysAPINet (in diCrSysAPINet.dll) Version: 6.22.2.24248 (6.22.2.0)
Syntax
public static string Encrypt(
	string inputHex,
	string keyHex,
	Mode mode,
	string ivHex
)

Parameters

inputHex  String
Hex-encoded input data
keyHex  String
Hex-encoded key
mode  Mode
Cipher Mode
ivHex  String
Hex-encoded IV representing exactly 8 bytes or "" for ECB mode

Return Value

String
Ciphertext in hex-encoded string or empty string on error
Remarks
For ECB and CBC modes, the length of the decoded input bytes must be an exact multiple of the block length (8 bytes)
See Also