Skip to content

a passphrase generator that uses the XKCD-936 spec

License

Notifications You must be signed in to change notification settings

kat-tax/xkcd-936

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

XKCD-936

A passphrase generator that uses the XKCD-936 spec

import generate from 'xkcd-936';

// Crypto-random generated passphrase
console.log(generate({
  list: 'large',
  wordCount: 5,
  delimiter: '-',
}));

// Psuedo-random generated passphrase
console.log(generate({
  list: 'medium',
  wordCount: 3,
  delimiter: '_',
  seed: 'how now brown cow',
}));

xkcd-936