CryptoSys API Library Manual

Aes128.Decrypt Method (String, String, Mode, String, EncodingBase)

Decrypt encoded data string

Syntax

[C#]
public static string Decrypt(
	string inputStr,
	string keyStr,
	Mode mode,
	string ivStr,
	EncodingBase encodingBase
)
[VB.NET]
Public Shared Function Decrypt ( _
	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 16 bytes (128 bits)
mode
Type: Mode
Cipher Mode
ivStr
Encoded IV representing exactly 16 bytes or "" for ECB mode
encodingBase
Type: EncodingBase
Type of encoding used

Return Value

Decrypted data in 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 (16 bytes)

See Also

VB6/C equivalent: AES128_B64Mode

[Contents] [Index]

[PREV: Aes128.Decrypt Method (String, String, Mode, String)...]   [Contents]   [Index]   
   [NEXT: Aes128.Dispose Method...]

Copyright © 2001-24 D.I. Management Services Pty Ltd. All rights reserved. Generated 2024-01-07T07:42:00Z.