CryptoSys PKI Pro Manual

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

Encrypt encoded data string.

Syntax

[C#]
public static string Encrypt(
	string inputStr,
	string keyStr,
	Mode mode,
	string ivStr,
	EncodingBase encodingBase
)
[VB.NET]
Public Shared Function Encrypt ( _
	inputStr As String, _
	keyStr As String, _
	mode As Mode, _
	ivStr As String, _
	encodingBase As EncodingBase _
) As String

Parameters

inputStr
Encoded input data
keyStr
Encoded key representing exactly 24 bytes (192 bits)
mode
Type: Mode
Cipher Mode
ivStr
Encoded IV representing exactly 8 bytes or "" for ECB mode
encodingBase
Type: EncodingBase
Type of encoding used

Return Value

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_B64Mode

[Contents] [Index]

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

Copyright © 2004-24 D.I. Management Services Pty Ltd. All rights reserved. Generated 2024-09-23T07:52:09Z.