Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Qr share #437

Merged
merged 2 commits into from
Oct 19, 2015
Merged

Qr share #437

merged 2 commits into from
Oct 19, 2015

Conversation

odeke-em
Copy link
Owner

This PR is the result of a spontaneous reaction during a Friday lunch conversation with a friend @indragiek, bouncing ideas on making file sharing between mobile and computer. Copying links is hard and very tedious, users give up trying to copy long links. Sharing to yourself is a no brainer as this is even more difficult. My idea was to quickly link up a file with my device without having to write an app, so this code is an experiment to see how easy it will become. This new feature just needs a drive-server to be running anywhere and then you can direct drive qr to it.
The logic behind it is that to verify that you know this server, an HMAC signature of your private key, public key, generation time, random payload, fileURL and expiry time are performed. The private key is never sent. The public key, payload, fileURL, request time, expiry time and signature are set to the server via browser open. On its side, it performs a similar HMAC and will refuse to generate a QR code if signatures and comparisons don't match up.
Usage is in the README

Emmanuel Odeke added 2 commits October 17, 2015 00:44
+ Can now configure which address to point to for the
QR code generating server.
+ Added information for how to create/connect to the QR Code server.
+ Added an expiry duration as extra field in QR signature.
@odeke-em odeke-em merged commit 29d7bec into master Oct 19, 2015
@odeke-em odeke-em added this to the v0.3.2 milestone Oct 19, 2015
@odeke-em odeke-em deleted the qr-share branch October 21, 2015 02:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant