Coder Social home page Coder Social logo

segocode / cryptopix Goto Github PK

View Code? Open in Web Editor NEW
2.0 3.0 1.0 1.11 MB

A concept for image sharing service fully anonymous, database-less and client side encryption powered by golang

License: Other

JavaScript 21.33% CSS 20.40% HTML 23.83% Go 34.44%
encrypted-store image-sharing self-destroy minimalist golang aes-256

cryptopix's Introduction

CryptoPix

CryptoPix is concept for image sharing service fully anonymous, database-less and client side encryption these data is encrypted and decrypted in the browser using 256bit AES using crypto-js lib.

The images are converted to b64, at this point they are treated as text (Pastebin-like system), encrypted and sent to server by axios.

Easy and minimalistic code, easy to setup and modified with zero configuration

Functionality

In very questionable diagram

Database-less

All sessions in the web generate a JWT token these uses to name the local file and uses to referer the file when it is shared, there is no any database configuration but can be easily modified to connect to a database such as Firebase. The server never knows what files are uploaded and it does not retrieve any user-related in JWT data.

Share link

The sahre link contains id for encrypted file and contains a # character is a fragment URL. The portion of the URL to the right of the # is the key for decrypt, If you try using fragment URLs in an HTTP sniffer like HttpWatch, you’ll never see the fragment IDs in the requested URL or Referer header. The reason is that the fragment identifier is only used by the browser, fragments Are not Sent in HTTP Request Messages!

Configuration & setup

There are a file you might reasonably want to edit if you deploy this code:

  • config.json, for port ip or other server details.

Config details:

max-file-size Bytes format

clean-time Hours Format

secret-key JWT private server key

After this just download repo and run server.go in root server directory.

Demo

License

CryptoPix is licensed under like non-commercial attribution for more details check LICENSE or contact me in my email available in my profile.

cryptopix's People

Contributors

segocode avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

jechaviz

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.