No description
Find a file
2024-11-08 16:00:17 +01:00
config rework environment variables 2024-11-08 16:00:17 +01:00
middlewares improve logging 2024-10-30 10:44:37 +01:00
routes rework the way passwords expire 2024-10-30 11:25:42 +01:00
static move data storage out of query into url hash 2024-11-04 22:52:00 +01:00
storage rework environment variables 2024-11-08 16:00:17 +01:00
Dockerfile first commit 2024-10-30 00:08:11 +01:00
go.mod first commit 2024-10-30 00:08:11 +01:00
LICENSE.md first commit 2024-10-30 00:08:11 +01:00
main.go rework environment variables 2024-11-08 16:00:17 +01:00
README.md mention secure context in readme 2024-11-04 23:25:09 +01:00

PassED

Discord Demo

EMail, but for passwords.

Did you ever run into the issue of needing to share a password with someone in a secure manner and you did not know how?

You want to send it to them by EMail, but there it will surely get logged along the way.

You want to write it send it to them over WhatsApp, but that's not that secure.

You want to write it on paper, but everyone can read that.

PassED solves these issues by allowing you to generate single-use URLs that contain your password.

How it works

When you create a password URL, PassED firstly encrypts the password in your browser using AES-GCM. It then uploads the encrypted password to the server, which responds with an ID that uniquely identifies that password. The AES Key and IV is then stored in the URL, along with the ID.

When someone views the password, PassED looks at the URL. It knows the password ID, AES Key and IV. It reaches out to the server, asks for a password with the ID from the URL, and then decrypts it with the AES Key and IV.

This model ensures that a malicous host can not read the passwords.

Installation

Installation can be done with docker compose or from source. As the website uses the Web Crypto API it needs to be in a secure context. That means that you will need to access the website via "localhost" or HTTPS.

Docker Compose

services:
  "passed":
    build: "https://git.1e99.eu/1e99/passed.git"
    volumes:
      - "./passed:/etc/passed"
    environment:
      - "PASSED_STORE_TYPE=dir"
      - "PASSED_STORE_DIR_PATH=/etc/passed"
    ports:
      - "3000:3000"

Source

  1. Download the source code
git clone https://git.1e99.eu/1e99/passed.git
  1. Ensure that you have go installed, if not follow this guide.
  2. Build the project
go build -o passed .
  1. Run the project
PASSED_STORE_TYPE=dir ./passed

Configuration

Configuration is done with environment variables.

  • PASSED_ADDRESS: Specifies the address that PassED should listen on, defaults to :3000
  • PASSED_STORE_TYPE: Specify which store to use to save passwords, defaults to ram:
    • ram: Stores all passwords in RAM, they are lost on restart
    • dir: Stores all passwords in a directory. Requires PASSED_STORE_DIR_PATH to be set to the directory, defaults to passwords. PassED will not create the directory.
  • STORE_CLEAR_EXPIRED_INTERVAL: Specifies the delay in seconds to wait between clearing expired passwords, defaults to 30.