CryptoSys API Library Manual

Aes128.Unpad Method (String)

Removes the padding from a hex-encoded encryption block

Syntax

[C#]
public static string Unpad(
	string dataHex
)
[VB.NET]
Public Shared Function Unpad ( _
	dataHex As String _
) As String

Parameters

dataHex
hex-encoded padded data

Return Value

Unpadded data in hex-encoded string or unchanged data on error

Remarks

Padding is expected according to the convention in PKCS#5/#7/CMS. An error is indicated by returning the original data which will always be longer than the expected unpadded result.

Examples (VB.NET)

See Example1 Example2 Example3 Example4

See Also

VB6/C equivalent: PAD_UnpadHex

[Contents] [Index]

[HOME]   [NEXT: Aes128.Update Method (Byte)...]

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