Zend Framework  3.0
Public Member Functions | List of all members
Pkcs7 Class Reference

PKCS#7 padding. More...

Public Member Functions

 pad ($string, $blockSize=32)
 Pad the string to the specified size.
 
 strip ($string)
 Strip the padding from the supplied string.
 

Detailed Description

PKCS#7 padding.

Member Function Documentation

pad (   $string,
  $blockSize = 32 
)

Pad the string to the specified size.

Parameters
string$stringThe string to pad
int$blockSizeThe size to pad to
Returns
string The padded string

Implements PaddingInterface.

strip (   $string)

Strip the padding from the supplied string.

Parameters
string$stringThe string to trim
Returns
string The unpadded string

Implements PaddingInterface.