Code Monkey home page Code Monkey logo

passphraser's Introduction

Passphraser

A self-contained Javscript passphrase generator. Philosophically, it is heavily inspired by Use a Passphrase.

You can view this page online at: https://www.michaelkelly.org/passphraser.html

The canonical location of the source code is https://git.sr.ht/~mkelly/passphraser. GitHub is a mirror.

Screenshots

This is what it looks like on desktop and mobile:

Passphraser desktop

Passphraser mobile

Building

Requires Hugo: https://gohugo.io/getting-started/quick-start/

To show a local preview, run hugo serve

To generate files in the public directory, run hugo

Bias checks

Requires python 3 with numpy: pip3 install numpy

There is an alternate endpoint, /benchmark.html, which outputs only numerical indices (which we would normally use to index into our word list). We output 5 per line, and show 100,000 lines. This lets you copy and paste the output and run whatever tests you want.

bias-checks.py has some numerical checks I thought of.

Word list

The word list is in assets/wordlist.js. It's a formatted javascript list. If you want to export it to plaintext, you can run this from the top-level directory of this git repo:

./scripts/wordlist_to_txt.pl < assets/wordlist.js > wordlist.txt

This will give you a wordlist.txt.

Licenses

  1. The list of words used is public domain; it is a processed list of words ultimately from https://en.wikipedia.org/wiki/Moby_Project.
  2. Everything else (the code) is covered by the MIT license. See LICENSE.

passphraser's People

Contributors

mjkelly 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.