wfscheper / xkcdpwd Goto Github PK
View Code? Open in Web Editor NEWAn passphrase generator based on XKCD #936
License: Apache License 2.0
An passphrase generator based on XKCD #936
License: Apache License 2.0
As a user of xkcdpwd, I would like to control the length of words used in my passphrase via a command-line option.
Examples:
$ xkcdpwd -max-length=10
happy iguana left users
$ xkcdpwd -min-length=10
establishment recommendations happenstance recreation
# max word length is 18
$ xkcdpwd -max-legnth=23
error: dictionary cannot support more than 30 bits of entropy
# min word length is 4
$ xkcdpwd -min-length=3
error: dictionary cannot support more than 30 bits of entropy
The tests currently fail on windows with the following errors:
--- FAIL: TestIntegration (0.00s)
--- FAIL: TestIntegration/capitalize/invalid (0.00s)
--- FAIL: TestIntegration/capitalize/invalid/external (0.12s)
##[error] testcase.go:55: setting default separator ' '
##[error] testcase.go:114: stderror did not contain the expected error
WANT:
error: invalid capitalization strategy 'foo'
GOT:
error: invalid capitalization strategy 'foo'
xkcdpwd should have an option to control how many passphrases are generated at a time.
$ xkcdpwd -phrases 5
correct horse battery staple
correct horse battery staple
correct horse battery staple
correct horse battery staple
correct horse battery staple
Select dictionary language based on the user's system locale or a command-line flag.
Examples:
$ export LANG=fr_FR.UTF-8
$ xkcdpwd
content iguane gauche utilisateurs
$ xkcdpwd -lang fr
content iguane gauche utilisateurs
As a user of xkcdpwd, I would like to control the number of words in the passphrase via a command-line option.
Examples
$ xkcdpwd -words=5
$ xkcdpwd -words=2
error: cannot generate a passphrase with less than 30 bits of entropy
As a user of xkcdpwd, I would like to control the case of my passphrases via a command-line option.
Options:
$ xkcdpwd -capitalize=first
Happy Iguana Left Users
$ xkcdpwd -capitalize=random
haPPy iGuANA LeFT uSers
$ xkcdpwd -capitalize=all
HAPPY IGUANA LEFT USERS
As a user of xkcdpwd, I would like to select the character used to separate words in the passphrase.
Examples:
$ xkcdpwd --separator='-'
foo-bar-baz-bam
$ xkcdpwd -s=
foo=bar=baz=bam
Currently xkcdpwd only supports English, though the framework is in place to support other languages.
Things to consider:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.