这是代码:
function pkcs5_pad ($text, $blocksize) { $pad = $blocksize ? (strlen($text) % $blocksize); return $text . str_repeat(chr($pad), $pad); }
有非法字符
function pkcs5_pad($text, $blocksize){ $pad = $blocksize - (strlen($text) % $blocksize); return $text . str_repeat(chr($pad), $pad);}
老xu威武!!