private function padISO10126($data, $blockSize)
    {
        if ($blockSize > 256) {
            throw new Exception('Block size higher than 256 not allowed');
        }
        $padChr = $blockSize - (strlen($data) % $blockSize);
        $pattern = chr($padChr);
        return $data . str_repeat($pattern, $padChr);
    }
private function padISO10126($data, $blockSize)
    {
        if ($blockSize > 256) {
            throw new Exception('Block size higher than 256 not allowed');
        }
        $padChr = $blockSize - (strlen($data) % $blockSize);
        $pattern = chr($padChr);
        return $data . str_repeat($pattern, $padChr);
    }
private function padISO10126 ( $ data , $ blockSize ) { if ( $ blockSize > 256 ) { throw new Exception ( 'Block size higher than 256 not allowed' ) ; } $ padChr = $ blockSize - ( strlen ( $ data ) % $ blockSize ) ; $ pattern = chr ( $ padChr ) ; return $ data . str_repeat ( $ pattern , $ padChr ) ; }
ISO 10126 Padding

@param string $data
@param integer $blockSize
@throws Exception
@return string
ISO 10126 Padding