CryptoSys PKI Pro Manual

Tdea.Encrypt(String, String, Mode, String) Method

Encrypt hex-encoded data string.

Syntax

[C#]
public static string Encrypt(
   string inputHex,
   string keyHex,
   Mode mode,
   string ivHex 
)
[VB]
Public Shared Function Encrypt (
   inputHex As String,
   keyHex As String,
   mode As Mode,
   ivHex As String 
) As String

Parameters

inputHex  String
Hex-encoded input data
keyHex  String
Hex-encoded key representing exactly 24 bytes (192 bits)
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

See Also

VB6/C equivalent: TDEA_HexMode

[Contents] [Index]

[PREV: Tdea.Encrypt(Byte, Byte, Mode, Byte) Method...]   [Contents]   [Index]   
   [NEXT: Tdea.Encrypt(String, String, Mode, String, EncodingBase) Method...]

Copyright © 2004-26 D.I. Management Services Pty Ltd t/a CryptoSys. All rights reserved. Generated 2026-09-21T05:59:39Z.