| Fully Qualified Name: | Laminas\Crypt\Symmetric\Padding\Pkcs7 |
| Implements: | PaddingInterface |
PKCS#7 padding
| Name | Description | Defined By |
|---|---|---|
| pad() | Pad the string to the specified size | Pkcs7 |
| strip() | Strip the padding from the supplied string | Pkcs7 |
Pad the string to the specified size
| Parameter Name | Type | Description |
|---|---|---|
| $string | string | The |
| $blockSize | int | The |
Returns: string The padded string
Strip the padding from the supplied string
| Parameter Name | Type | Description |
|---|---|---|
| $string | string | The |
Returns: string The unpadded string