Removes the padding from a hex-encoded encryption block
Namespace:
CryptoSysAPIAssembly: diCrSysAPINet (in diCrSysAPINet.dll) Version: 6.22.1.29521
Syntax
C# |
---|
public static string Unpad( string dataHex ) |
Visual Basic (Declaration) |
---|
Public Shared Function Unpad ( _ dataHex As String _ ) As String |
Parameters
- dataHex
- Type: System..::.String
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.