Class Pkcs7

Summary

Fully Qualified Name: Zend\Crypt\Symmetric\Padding\Pkcs7
Implements: PaddingInterface

Description

PKCS#7 padding

Methods

Name Description Defined By
pad() Pad the string to the specified size Pkcs7
strip() Strip the padding from the supplied string Pkcs7

Method Details

pad()

Pad the string to the specified size

Parameter Name Type Description
$string string The
$blockSize int The

Returns: string The padded string

strip()

Strip the padding from the supplied string

Parameter Name Type Description
$string string The

Returns: string The unpadded string

Top