Skip to content

Latest commit

 

History

History
25 lines (19 loc) · 441 Bytes

README.md

File metadata and controls

25 lines (19 loc) · 441 Bytes

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