时间:2021-07-01 10:21:17 帮助过:15人阅读
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威武!!