PaddingTrait
Table of Contents
Methods
- depad() : string
- Remove padding from $text using PKCS5Padding schema
- pad() : string
- Pad $text to multiple of $blockSize lenght using PKCS5Padding schema
Methods
depad()
Remove padding from $text using PKCS5Padding schema
public
depad(mixed $data, int $blockSize) : string
Parameters
- $data : mixed
- $blockSize : int
Return values
stringpad()
Pad $text to multiple of $blockSize lenght using PKCS5Padding schema
public
pad(string $text, int $blockSize) : string
Parameters
- $text : string
- $blockSize : int