src/MediaServices/Models/ContentKey.php
private function pkcs5_pad($text, $blockSize)
    {
        $pad = $blockSize - (strlen($text) % $blockSize);

        return $text.str_repeat(chr($pad), $pad);
    }
private function pkcs5_pad($text, $blockSize)
    {
        $pad = $blockSize - (strlen($text) % $blockSize);

        return $text.str_repeat(chr($pad), $pad);
    }
private function pkcs5_pad ( $ text , $ blockSize ) { $ pad = $ blockSize - ( strlen ( $ text ) % $ blockSize ) ; return $ text . str_repeat ( chr ( $ pad ) , $ pad ) ; }
checksum padding.

@param string $text
@param int    $blockSize

@return string
checksum padding .