Coder Social home page Coder Social logo

theneedyguy / pwcalc Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 6.02 MB

Flask Password calculator for secure passwords.

Home Page: https://pwcalc.purpl3.net

License: MIT License

Python 28.07% Shell 7.35% HTML 33.46% Go 23.61% Dockerfile 7.51%
python3 docker openshift flask security password-generator

pwcalc's Introduction

Pwcalc

PwCalc is an app built with Flask to generate passwords.

How it works

The app combines 2 strings and generates a SHA512 hash. The hash then gets converted to a BASE64 string of which only the first 16 characters are used.

Architecture

The application is containerized and runs on Port 3333 to where the user connects via the webbrowser.

See more Info in the chapter Container versions.

Main application

The main application is written in Python and uses Flask for the web interface and the Docker API to make requests to the Docker Engine.

The user sends two values via a form to the back-end. The application then sends the values via a post request to the runner container. The runner then sends back the resulting password to the web interface where the user can access it.

Runner

The runner is written in Golang and generates a "password" from the two values it gets from the web interface. It exposes the password in its output where the main application can read it and pass it back to the user. The runner itself is a container too.

Container versions

  • ckevi/pwcalc:1.0 : This version doesn't use a runner. Instead it does all the work in the same application. This is generally faster. Also the container does not run as root. This version can also be run in Kubernetes and OpenShift since it doesn't rely on the Docker API.

  • ckevi/pwcalc:2.2-root : This version uses the runner (ckevi/pwcalc-runner) to create the password. It must run as root since the Docker UNIX-Socket can only be accessed by a root user in the container.

  • ckevi/pwcalc:3.0-root : This version sends post requests to ckevi/pwcalc-runner:2.0. Note that this verison requires version 2.0 of the runner container. This version is theoretically can work w/o root since it doesn't rely on the docker UNIX socket anymore.

pwcalc's People

Contributors

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