CryptoSys PKI Pro Manual

Tdea.Encrypt Method (Byte[], Byte[], Mode, Byte[])

Encrypt data in byte array.

Syntax

[C#]
public static byte[] Encrypt(
	byte[] input,
	byte[] key,
	Mode mode,
	byte[] iv
)
[VB.NET]
Public Shared Function Encrypt ( _
	input As Byte(), _
	key As Byte(), _
	mode As Mode, _
	iv As Byte() _
) As Byte()

Parameters

input
Input data
key
Key of exactly 24 bytes (192 bits)
mode
Type: Mode
Cipher Mode
iv
IV of exactly 8 bytes or null for ECB mode

Return Value

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

See Also

VB6/C equivalent: TDEA_BytesMode

[Contents] [Index]

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

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