Skip to content

Instantly share code, notes, and snippets.

@Prottoy2938
Created November 2, 2020 13:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Prottoy2938/9df91fa0422a954470371046379ae73a to your computer and use it in GitHub Desktop.
Save Prottoy2938/9df91fa0422a954470371046379ae73a to your computer and use it in GitHub Desktop.
Cipher Delta key generation code
function makeId(length) {
let result = "";
const characters =
"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
const charactersLength = characters.length;
for (let i = 0; i < length; i++) {
result += characters.charAt(Math.floor(Math.random() * charactersLength));
}
return result;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment