wodCrypt ActiveX Control - Padding Property
      
 

Description

Determines padding data for short blocks.


Property type

A CryptoPadding enumeration.  Determines the type of padding to use when doing encryption.


Syntax

object.Padding [= value]



The Padding Property syntax has these parts:

Part Description
object An expression evaluating to an object of type wodCrypt.
value A CryptoPadding enumeration, as described in settings.

Settings

The settings for value are:

Constant Value Description
 PadNull 0 Blocks are filled with zeroes (NULL)
 PadSpace 1 Blocks are filled with blanks
 PadRandom 2 Blocks are filled with random data
 PadPKCS7 3 Blocked are filled as defined by PKCS7

Remarks

The Padding property determines how wodCrypt will add padding to unaligned plaintext blocks. It is used when the input (plaintext) blocks are not the correct size (i.e. are not a multiple of the BlockSize property value) needed for the encryption operation.

Based on your value in this property wodCrypt can just put Null values on unused data places, fill them with spaces, add random data, etc..