celliott / passgen

A simple http endpoint for generating passwords

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

passgen

A docker container to run passgen.py

Requirements

  • Docker for Mac
  • Xcode command line tools to be installed $ xcode-select --install

Usage

  • Update AUTH_USER and AUTH_PASS in .env
  • Build and run container
$ export AUTH_PASS=<auth_pass>
$ make build
$ make up
  • Get password

plaintext

$ make get-pass 
# or
$ curl http://$AUTH_USER:$AUTH_PASS@127.0.0.1
HiEN-l0Dz-VQ8b-QdLu

json

$ make get-json
# or
$ curl http://$AUTH_USER:$AUTH_PASS@127.0.0.1/json
{
  "password": "HiEN-l0Dz-VQ8b-QdLu"
}

About

A simple http endpoint for generating passwords

License:MIT License


Languages

Language:Python 45.6%Language:Makefile 35.4%Language:Shell 18.9%