SOURCE

const a = ['a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z',0,1,2,3,4,5,6,7,8,9,'#','']
const keyIndex = [0x0A, 0x78,0x09,0x66,0x24,0x40,0x1B,0x2A]
let key = []
keyIndex.forEach(function(item,index){
    if (index%2==0) {
        key.push(a[keyIndex[index]])
    } else {
        key.push(String.fromCharCode(item))
    }
})
console.log(key.join(''))
//kxjf#@1*

var str = 'abcdefghijklmnopqrstuvwxyzAB0CD1EF2GH3IJ4KL5MN6PQR7STU8VWX9YZ'
var newStrAll = [];
str.split('').forEach((item, index, array) => {
    var newIndex = Math.round(Math.random() * newStrAll.length);
    newStrAll.splice(newIndex, 0, item);
});
console.log(newStrAll.join(''));
console 命令行工具 X clear

                    
>
console