Coder Social home page Coder Social logo

password-generator's Introduction

password-generator

CircleCI

A secure, sane-defaults password generator for Unix and GNU/Linux.

How to know if this password generator is for you

  • You want a password generator which runs on the command line
  • You want a password generator with no dependencies (e.g. gcrypt, openssl)
  • You want a password generator with a small amount of code, so you can read and understand it easily
  • You want a program which fails loudly at the first sign of trouble
  • You trust your kernel's random source, but only when it has been seeded properly

How to know if this password generator is NOT for you

  • You want your passwords to be "pronounceable" or "memorable"
  • You want a password generator with a GUI
  • You have an old kernel or C library without the getrandom call in it

Getting started

# Build program
make

# Generate a 64-character ASCII password
./password-generator

# Specify the length of the generated password
./password-generator 123

With Docker

# Build image
docker build -t trichards/password-generator .

# Run program
docker run --rm -it trichards/password-generator

Roadmap

  • Draw random bytes from the system getrandom facility
  • Lock memory pages from swapping
  • Explicitly wipe data from memory
  • Produce ASCII character output
  • Implement a small number of command-line arguments (flags?)
    • Password length
    • Number of passwords?
    • Others?
  • Add unit tests for important features
    • Random bytes -> ASCII conversion
  • Review everything for security

password-generator's People

Contributors

t-richards avatar seabre avatar

Stargazers

Roman avatar

Watchers

 avatar James Cloos 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.