PKCS#7 padding

package Default

 Methods

Pad the string to the specified size

pad(string $string, integer $blockSize = 32) : string
inherited_from \Zend\Crypt\Symmetric\Padding\PaddingInterface::pad()

Parameters

$string

string

The string to pad

$blockSize

integer

The size to pad to

Returns

stringThe padded string

Strip the padding from the supplied string

strip(string $string) : string
inherited_from \Zend\Crypt\Symmetric\Padding\PaddingInterface::strip()

Parameters

$string

string

The string to trim

Returns

stringThe unpadded string