GithubHelp home page GithubHelp logo

telepyzuk / flashpaper Goto Github PK

View Code? Open in Web Editor NEW

This project forked from andrewpaglusch/flashpaper

0.0 0.0 0.0 208 KB

One-time encrypted password/secret sharing

License: MIT License

PHP 87.08% Dockerfile 2.84% Shell 10.08%

flashpaper's Introduction

FlashPaper

A one-time encrypted zero-knowledge password/secret sharing application focused on simplicity and security. No database or complicated set-up required.

Demo

https://flashpaper.io

Picture of Main Page

Requirements

  • PHP 5.6+
  • Web server

Installation

Copy the contents of this repository to document root of your web server. Copy settings.example.php to settings.php and make customizations to that file

To further increase security, disable access logging in your web server's configuration so nothing sensetive (IP addresses, useragents, timestamps, etc) are logged to disk.

Summary Of How It Works

Submitting Secret

  • secrets.sqlite sqlite database created (if it doesn't already exist).
  • Random 256-bit AES key is created
  • Random 256-bit AES static key is created (if one doesn't exist already)
  • Random 128-bit IV is created
  • Random 64-bit ID is created
  • ID + AES key is hashed with bcrypt
  • Submitted text is encrypted with AES-256-CBC using AES key and random IV
  • Ciphertext is now encrypted with AES-256-CBC using static AES key and random IV
  • ID and AES key joined (known as k)
  • ID, IV, bcrypt hash, and ciphertext stored in DB
  • k value returned to user in one-time URL
    • Example URL: https://flashpaper.io/?k=1a2b3c4d5a6b7c8d9a0b1c2d3a4b5c6d7e8f9g

Retrieving Secret

  • k value removed from URL and base64 decoded
  • Decoded k value split into two parts: ID and AES key
  • IV, bcrypt hash, and ciphertext looked up from DB with ID from k
  • k bcrypt hash compared against bcrypt hash from DB (prevents tampering of URL)
  • Ciphertext decrypted with static AES key and IV
  • Ciphertext decrypted with AES key from k and IV
  • Entry deleted from DB
  • Decrypted text sent to user

flashpaper's People

Contributors

andrewpaglusch avatar barry-smithjr avatar mattburchett avatar matthew-jenkins 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.