versatile HTTP pastebin
Find a file
2022-04-09 02:27:41 +02:00
docs Merged in master (pull request #29) 2022-04-08 19:11:52 +00:00
samples/httpaste.it feat(samples): init httpaste.it sample 2022-04-09 02:27:41 +02:00
src/httpaste Merged in master (pull request #31) 2022-04-08 19:28:14 +00:00
tests feat: init 2022-04-01 01:02:09 +02:00
.dockerignore feat(docker): init Dockerfile 2022-04-08 21:29:25 +02:00
.gitignore feat(docker): init Dockerfile 2022-04-08 21:29:25 +02:00
ARCHITECTURE.md docs: add repository docs 2022-04-02 03:07:49 +02:00
bitbucket-pipelines.yml feat: init 2022-04-01 01:02:09 +02:00
CONTRIBUTING.md docs: add repository docs 2022-04-02 03:07:49 +02:00
Dockerfile fix(docker): set entrypoint to uwsgi for base image 2022-04-09 02:27:01 +02:00
LICENSE feat: init 2022-04-01 01:02:09 +02:00
Pipfile fix(docker): set entrypoint to uwsgi for base image 2022-04-09 02:27:01 +02:00
Pipfile.lock fix(docker): set entrypoint to uwsgi for base image 2022-04-09 02:27:01 +02:00
pyproject.toml fix(build-toolchain): migrate versioning to setuptools_scm 2022-04-08 21:00:51 +02:00
README.md docs: add repository docs 2022-04-02 03:07:49 +02:00
setup.cfg fix(build-toolchain): migrate versioning to setuptools_scm 2022-04-08 21:00:51 +02:00
setup.py feat: init 2022-04-01 01:02:09 +02:00
tox.ini feat(docker): init Dockerfile 2022-04-08 21:29:25 +02:00

httpaste - versatile HTTP pastebin

httpaste is a pastebin application for easily pasting and retrieving data over HTTP from shell environments and web browsers. It is inspired by sprunge.us and ix.io, but focuses on extendability, advanced security, with little to no trade-off to simplicity. It can be hosted through WSGI, CGI, Fast CGI, or as a standalone evaluation server. It offers multiple storage backends, such as a filesystem backend, SQLite backend, MySQL backend, or MongoDB backend.

All pastes are being encrypted on the fly and can only be retrieved by an authorized user, either through knowing the paste id of a public paste, or having authentication credentials, as well as the paste id of a private paste. This makes httpaste ideal as a pastebin for sensitive environments such as the Tor network. Authentication credentials are created on-the-fly and dont require a sign-up process.

httpaste supports output formatting for syntax highlighting (powered by pygments), as well as MIME type output manipulation, and input encoding. Therefore httpaste can server as an anonymous object storage for small data.

Minute-based and burn-after-read paste expiration are supported.

httpaste focuses on security through cryptography, making it a computationally intensive application.

Get Started

Install

$ python3 -m pip install httpaste-victorykit
$ httpaste --help

Create Configuration

$ httpaste default-config --dump myconfig.ini

NOTE: The default configuration creates an in-memory SQLite backend, which is not suitable for WWW deployments. Visit backend, for more information on configuring the backend.

Run a Local Evaluation Server

$ httpaste standalone --config myconfig.ini --port 8080

Publish a Private Paste

$ echo 'My first private paste' | curl -F 'data=<-' -u myusername:mypassword http://localhost:8080/paste/private
http://localhost:8080/paste/private/UALUA9

NOTE: If the user does not exist, they will be created upon authentication.

Retrieve a Private Paste

$ curl -u myusername:mypassword http://localhost:8080/paste/private/UALUA9
My first private paste

Publish a Public Paste

$ echo 'My first public paste' | curl -F 'data=<-' http://localhost:8080/paste/public
http://localhost:8080/paste/public/X4L39J

Retrieve a Public Paste

$ curl http://localhost:8080/paste/public/X4L39J
My first public paste

Documentation

The documentation can be found under https://victorykit.bitbucket.io/httpaste/.

Licensing

Copyright (C) 2021 Tiara Rodney (victoryk.it)

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see <https://www.gnu.org/licenses/>.

This program uses licensed third-party software.

More Information