function password(length,base64) {
//let num=typeof length=='number'?Math.round(Math.random()*length*36):Math.round(Math.random()*10*36)
let ret='';for(let i=0;i<length;i++){ret+=Math.round(Math.random()*36).toString(36)}
return base64?(btoa(ret)):ret
}