PKCS#7 padding

category Zend
package Zend_Crypt

 Methods

Pad the string to the specified size

pad(string $string, int $blockSize) : string

Parameters

$string

string

The string to pad

$blockSize

int

The size to pad to

Returns

stringThe padded string

Strip the padding from the supplied string

strip(string $string) : string

Parameters

$string

string

The string to trim

Returns

stringThe unpadded string