package Default

 Methods

Pad the string to the specified size

pad(string $string, integer $blockSize = 32) : string

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

Parameters

$string

string

The string to trim

Returns

stringThe unpadded string