CryptoSys API Library Manual

Aes256.Decrypt Method (String, String, Mode, String)

Decrypt hex-encoded data string

Syntax

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

Parameters

inputHex
Hex-encoded input data
keyHex
Hex-encoded key representing exactly 32 bytes (256 bits)
mode
Cipher Mode
ivHex
Hex-encoded IV representing exactly 16 bytes or "" for ECB mode

Return Value

Decrypted data 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: Aes256.Decrypt Method (String, String, Mode, String, EncodingBase)...]

Copyright © 2001-9 D.I. Management Services Pty Ltd. All rights reserved.