Class PKCS5Padding
Implements PKCS5 cipher padding.
public class PKCS5Padding : CipherPadding
  - Inheritance
 - 
      
      
      PKCS5Padding
 
- Inherited Members
 
Constructors
PKCS5Padding()
public PKCS5Padding()
  Methods
Pad(byte[], int, int, int)
Pads the specified input with a given number of bytes.
public override byte[] Pad(byte[] input, int offset, int length, int paddinglength)
  Parameters
inputbyte[]The input.
offsetintThe zero-based offset in
inputat which the data to pad starts.lengthintThe number of bytes in
inputto take into account.paddinglengthintThe number of bytes to pad the input with.
Returns
- byte[]
 The padded data array.
Pad(int, byte[], int, int)
Pads the specified input to match the block size.
public override byte[] Pad(int blockSize, byte[] input, int offset, int length)
  Parameters
blockSizeintThe size of the block.
inputbyte[]The input.
offsetintThe zero-based offset in
inputat which the data to pad starts.lengthintThe number of bytes in
inputto take into account.
Returns
- byte[]
 The padded data array.