Code Monkey home page Code Monkey logo

drop.incureforce.com's Introduction

drop

Secure encrypted temporal file storage.

Description

Files can only accessed via this unique url returned after upload. They are encrypted with AES-256 and stored in a postgres database. The database dosen't have decryption information stored and once the link is lost, the file cannot be retrieved (not even from the admin).

Files are delete after 5 minutes (expire_time parameter) or if all the download quotas are used.

Usage & Parameters

  • With every parameter set
curl --upload-file $filepath http://$host/storage/$filename?salt=$salt&expire_count=$expire_count&expire_time=$expire_time
  • Without every parameter set
curl --upload-file $filepath http://$host/storage/$filename

Parameters

Name Type Default Description
salt hex rng Defines the encryption salt
expire_time int 1 Defines the minutes until expiration (9 max)
expire_count int 1 Defines the download count until expiration (9 max)

Note

Every Parameter is optional and will have a default value / calcualted value during request.

Only salt will be returned with the download link.

Example

curl --upload-file sample.txt http://localhost/storage/sample.txt?salt=2d892b3e&expire_count=1&expire_time=5

On success, the server will return a download link for the stored file.

http://$host/storage/$filename?salt=$salt

Example

http://localhost/storage/sample.txt?salt=2d892b3e

drop.incureforce.com's People

Contributors

incureforce avatar

Stargazers

johannes avatar  avatar Johannes Pineker avatar

Watchers

James Cloos avatar  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.