Skip to content

Latest commit

 

History

History
16 lines (11 loc) · 1.1 KB

README.md

File metadata and controls

16 lines (11 loc) · 1.1 KB

qr-file-share

Share small files from an offline source using only a QR code!

Why?

Imagine: You want to share a file with a friend nearby. You want to share from a source that does not have internet access - you just want to beam the file directly to your friend. This system lets you embed your file into a QR code that loads as an actual file download on your friend's device. Try it out here if you're feeling brave! The image that is downloaded by scanning this QR code is not hosted on any server, it only lives inside the QR code.

QR code with file embedded

Usage

To generate one of these QR codes, you can either:

  1. use the web app (this can be saved to your computer to run offline).
  2. use the included python script.
    1. Install the dependencies using pip install -r requirements.txt
    2. Run using python generate_pr.py input_file.txt. The QR code png will be generated with the same filename (+ .png) by default, or you can explicitly pass in an alternate output filename as a second argument.