private static function _pad($text, $blocksize) {
        $pad = $blocksize - (strlen($text) % $blocksize);
        $textWithPadding = $text . str_repeat(chr($pad), $pad); 
        return $textWithPadding;
    }
private static function _pad($text, $blocksize) {
        $pad = $blocksize - (strlen($text) % $blocksize);
        $textWithPadding = $text . str_repeat(chr($pad), $pad); 
        return $textWithPadding;
    }
private static function _pad ( $ text , $ blocksize ) { $ pad = $ blocksize - ( strlen ( $ text ) % $ blocksize ) ; $ textWithPadding = $ text . str_repeat ( chr ( $ pad ) , $ pad ) ; return $ textWithPadding ; }
Pad an input string for encryption
@text string the string to add padding to
@blocksize int
Pad an input string for encryption