Giter Site home page Giter Site logo

lgmatrix13 / padlock Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 235 KB

A secure password manager and password sender. End-to-end encrypted. Doesn't require a master password.

Home Page: https://padlock.liamgrossman.com

Python 50.11% HTML 21.25% JavaScript 0.66% CSS 27.98%
cryptography docker flask python python3 security sqlite sqlite3

padlock's Introduction

Padlock ๐Ÿ”’

Padlock is an end-to-end encrypted password manager. It doesn't require a master password thanks to public-private key authentication.

Features โœจ

  • End-to-end encrypted.
  • No master password.
  • Easy to deploy. Uses a SQLite database for storage.
  • Clean and easy to use interface.

Tech stack โš™

  • Python 3: For runtime
  • Cryptography.io Hazmat Layer: For cryptography requiremeents
  • SQLite: For storage
  • Flask: For web framework
  • TailwindCSS: For styling
  • Jinja2: For UI pages, layouts, and components

Setup Locally ๐Ÿ’ป

2 simple steps

1. Install Dependencies

First install all the python dependencies:

pip install -r requirements.txt

Next install the needed node dependencies used during development. These are not included in production, but are helpful during local development:

npm install

2. Start the server

To start the server, cd to the root directory and run the app.py file:

python app.py

Setup for Production โšก

1. Build the docker image

Inside the root directory is a dockrfile. This can be used to quickly provision a container to run padlock in production docker environment. Just run the command:

docker build -t padlock-image .

2. Run the docker image

Run the container on port 5000 and setup the MASTER_PASSWORD env. This variable is used on the "Danger Zone" page to ensure only authorized admins can delete users stored on the instance.

docker run -p 127.0.0.1:5000:5000 --env MASTER_PASSWORD=somepassword --name padlock-container -it padlock-image

Scripts for Local Development ๐Ÿงฑ

These scripts require you to npm install the needed development dependencies.

format

npm run format uses prettier to format every html on the codebase.

tailwind:build

npm run tailwind:build uses tailwind (the CSS framework we're using) to export all the CSS utilities being used on the codebase.

padlock's People

Contributors

lgmatrix13 avatar austinhensley avatar

Stargazers

 avatar

Watchers

 avatar

padlock's Issues

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.