JSFiddle - React, Tailwind, and code Playground

by frogggeee McFrogggeee

HTML

<h1>
username encoder
</h1>
<button onclick = "encode()">encode username</button>

JavaScript

let chars = ["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", "1", "2", "3", "4", "5", "6", "7", "8", "9", "0", "_", "-"]; 
 let combos = []; 
 let base = [];
 for (let i =0; i < chars.length; i++) {
  combos.push(chars[i]);
 }
 let e = 0;
 for(i = 0; i < chars.length; i++) {
  for (e = 0; e < chars.length; e++) {
   combos.push(chars[i] + "" + chars[e]);
  }
 }
 for(i = 0; i < chars.length; i++) {
  for (e = 0; e < chars.length; e++) {
   for (let g = 0; g < chars.length;g++) {
    combos.push(chars[i] + "" + chars[e] + chars[g]);
   }
  }
 }
 function encode() {
 let name = prompt("what is your username?", "griffpatch");
 
}