Giter VIP home page Giter VIP logo

up-crypt's Introduction

What is up-crypt

up-crypt is a POC demonstrating how the HTML5 FileAPI can be used to implement client side AES encrypted file upload.

The crypto part is done by crypto-js (https://code.google.com/p/crypto-js/), a "growing collection of standard and secure cryptographic algorithms implemented in JavaScript using best practices and patterns".

For managing big numbers in javascript it uses Big Integer Library by Leemon Baird (http://leemon.com/crypto/BigInt.js)

Currently this POC has been tested on Firefox 4 and Chrome 12, yet it will probably also work on other browser versions that implement the HTML5 FileAPI.

TODO

In future releases it would be nice to have the following:

  • Support "true" multi-part POST Currently the file is not split up into multiple parts. This could be achieved by using the slice FileAPI method[2], or by loading the whole file into memory and sending it part by part with standard js string manipulation techniques.

  • Figure out a way to retrieve the file efficiently. Currently the was to get the file back to the user is to use the data URI scheme [3], while this method works ok for small files, its performance is uncertain for files over 1M ("The LITLEN (1024) limits the number of characters which can appear in a single attribute value literal"[3]). To sum this issue up in one line, we want the user to click on download file, and get his browser to fetch the encrypted content from the server, decrypt it locally (this can be achieved easily) and then present allow him to do "save as" (this is the tricky part).

[2] http://www.w3.org/TR/FileAPI/#dfn-slice [3] http://tools.ietf.org/html/rfc2397

up-crypt's People

Contributors

hellais avatar

Stargazers

Suri avatar Blue Electric avatar X_____ F________ avatar David Pennington avatar Jeevan Sivagnanasuntharam avatar Matthias Bilger avatar Erez Pilosof avatar  avatar  avatar Carlo Denaro avatar [sCRiPTz-TEAM] avatar  avatar Arun Lodhi avatar Pavel avatar evandrix avatar Rowan Thorpe avatar Frederic Jacobs avatar John Love avatar Steve Phillips avatar Charles Beebe avatar  avatar anton avatar  avatar  avatar ▟ ▖▟ ▖ avatar Stefan Schälle avatar

Watchers

evandrix avatar Frederic Jacobs avatar  avatar James Cloos avatar  avatar Manuel Contreras 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.