CryptoSys PKI Toolkit 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
Cipher Mode
ivStr
Encoded IV representing exactly 8 bytes or "" for ECB mode
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

[Contents] [Index]


[HOME]   [NEXT: Tdea.FileDecrypt Method (String, String, Byte, Mode, Byte)...]

Copyright © 2004-10 D.I. Management Services Pty Ltd. All rights reserved.