mirror of
https://github.com/v1k45/pastepass.git
synced 2026-01-08 07:11:54 +00:00
Add docs
This commit is contained in:
BIN
docs/images/0001_homepage.png
Normal file
BIN
docs/images/0001_homepage.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 843 KiB |
BIN
docs/images/0002_paste_success.png
Normal file
BIN
docs/images/0002_paste_success.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 890 KiB |
BIN
docs/images/0003_paste_confirmation.png
Normal file
BIN
docs/images/0003_paste_confirmation.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 861 KiB |
BIN
docs/images/0004_paste_view.png
Normal file
BIN
docs/images/0004_paste_view.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 888 KiB |
BIN
docs/images/0005_paste_expired.png
Normal file
BIN
docs/images/0005_paste_expired.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 846 KiB |
21
docs/screenshots.md
Normal file
21
docs/screenshots.md
Normal file
@@ -0,0 +1,21 @@
|
||||
### Screenshots
|
||||
|
||||
#### Home Page
|
||||
|
||||

|
||||
|
||||
#### Paste submission
|
||||
|
||||

|
||||
|
||||
#### Paste preview
|
||||
|
||||

|
||||
|
||||
#### View Paste
|
||||
|
||||

|
||||
|
||||
#### Paste expired
|
||||
|
||||

|
||||
58
readme.md
Normal file
58
readme.md
Normal file
@@ -0,0 +1,58 @@
|
||||
## PastePass
|
||||
|
||||
_Secure, one-time paste bin for sharing secrets._
|
||||
|
||||
PastePass lets you share secrets with others. The pasted content is encrypted with AES and can only be viewed once. After the paste is viewed, it is deleted from the server.
|
||||
|
||||
You can use this service to share passwords, API keys, or any other sensitive information that you don't want to store in your chat history or email.
|
||||
|
||||
PastePass is a single-binary, no dependency, fast and lightweight web service written in Go. It uses BoltDB for storing pastes after encrypting them with AES.
|
||||
|
||||
### How to use
|
||||
|
||||
Run with default options:
|
||||
```bash
|
||||
./pastepass
|
||||
```
|
||||
|
||||
Open http://localhost:8080/ to access the web app. Use the `-h` option to find all options:
|
||||
|
||||
```bash
|
||||
./pastepass -h
|
||||
```
|
||||
|
||||
Usage:
|
||||
```
|
||||
Usage of ./pastepass:
|
||||
-app-name string
|
||||
The name of the application (e.g. ACME PastePass) (default "PastePass")
|
||||
-db-path string
|
||||
The path to the database file (default "pastes.boltdb")
|
||||
-reset-db
|
||||
Reset the database on startup
|
||||
-server-addr string
|
||||
The server address to listen on (default ":8080")
|
||||
```
|
||||
|
||||
### Motivation
|
||||
|
||||
This project is inspired by [SnapPass](https://github.com/pinterest/snappass) by Pinterest. Think of it as an adaptation made for simplicity and ease of use.
|
||||
|
||||
It has a modern looking user interface. It is written in Go to make it easy to deploy and run on any platform. The server is a single binary with no dependencies.
|
||||
|
||||
See the [screenshots](./docs/screenshots.md) for a preview of the web app.
|
||||
|
||||
### Security
|
||||
|
||||
The pastes are encrypted with AES-256-GCM. The encryption key for each paste is generated randomly and stored in the database. The key is never stored on the server.
|
||||
|
||||
The server does not log any information about the pastes. The only information stored is the encrypted paste and its metadata (e.g. expiration time).
|
||||
|
||||
The server does not enforce HTTPS for the endpoints, but it is absolutely necessary to use HTTPS for all requests when deploying this service in production.
|
||||
|
||||
### TODO
|
||||
|
||||
- [ ] Deployment instructions
|
||||
- [ ] Demo web app
|
||||
- [ ] Unit tests
|
||||
|
||||
Reference in New Issue
Block a user