Giter VIP home page Giter VIP logo

xkcd-pass's Introduction

xkcd-pass

xkcd-pass is a password generator to be able to generate XKCD style passwords in any language using the words from Letterpress.

Installation

go install github.com/dmartzol/xkcd-pass/cmd/xkcd-pass@latest

Usage

Usage: xkcd-pass [OPTIONS]
  -M int
    	max word length (default 5)
  -c int
    	number of words to use (default 4)
  -d string
    	path to file with dictionary of words
  -m int
    	min word length (default 2)
  -s string
    	separator (default "-")
  -v	logs password strength information on screen

Examples

By default uses 4 words between 2 and 5 characters.

xkcd-pass -d ~/code/xkcd-pass/wordlists/es.txt 
casta-giben-crino-ver

If you use the option -v you can see the password entropy:

xkcd-pass -d ~/code/xkcd-pass/wordlists/es.txt -v
paxte-apuno-canse-dure
all words 636599
sample space 13898
entropy 55

You can use longer words:

xkcd-pass -d ~/code/xkcd-pass/wordlists/es.txt -m 4 -M 10 -v
conciliare-agrupable-atusadora-tañere
all words 636599
sample space 362935
entropy 74

It prints to stdout so you can conveniently copy to clipboard with:

xkcd-pass -d ~/code/xkcd-pass/wordlists/es.txt | pbcopy

xkcd-pass's People

Contributors

dmartzol avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.