任意进制转换,只要把字典字符集填充够长,顺序打乱,配合 mb_ord() 可实现逐字加密。
function baseConvert($num,$fromBase=10,$toBase=95) {
if ($fromBase!=10){
$num=baseConvertReverse($num.'',$fromBase,10...
Object.prototype.clone = function clone() { var copy = (this instanceof Array) ? [] : {}; for (attr in this) { if (!obj.hasOwnProperty(attr)) continue; copy[...