GithubHelp home page GithubHelp logo

txtatech / qreeper Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 0.0 53 KB

A qr code encoder and decoder that first uses gzip, on the data field text and then encodes a qr code with base64 and another qr code with hex to generate qr codes

Rust 100.00%
data-compression data-compressor qr-code qr-code-decoder qr-code-encoder qr-code-generator qr-code-compressor qr-code-decompressor

qreeper's Introduction

qreeper

A qr code encoder and decoder that first uses gzip, on the data field text and then encodes a qr code with base64 and another qr code with hex to generate qr codes

QReeper is a pair of Rust applications that provide QR code data compression and decompression functionality.

The qreeper_encoder encodes and compresses given text data into QR codes in both Hex and Base64 encoding formats.

The qreeper_decoder is capable of decoding these QR codes and decompressing the data back into its original form.

The applications use a GTK interface.

Installing QReeper

To install QReeper, follow these steps:

  1. Clone the GitHub repository:
git clone https://github.com/txtatech/qreeper.git
  1. Change into the qreeper directory:
cd qreeper

Using QReeper

To use QReeper, you can run each program individually as follows:

QReeper_Encoder

Encodes and compresses text data into QR codes. To use it, navigate to the qreeper_encoder directory and run the following command:

cargo run

This will launch the compressor application. You can enter your text data into the text field and click "Generate QR Codes" to create the QR codes. The compressed data will be shown in the application window and the generated QR codes will be saved as .png files in the same directory.

QReeper_Decoder

Decodes and decompresses data from QR codes. To use it, navigate to the qreeper_decoder directory and run the following command:

cargo run

This will launch the decompressor application. You can use the file chooser to select a QR code .png file and click "Decode QR Code" to decompress the data. The decompressed data will be shown in the application window.

NOTE:

When encoding data as base64, it pads the data to a length that's a multiple of 4. If you are splitting base64 data into chunks, you need to make sure that each chunk (except possibly the last one) ends on a multiple of 4 characters. If you don't, the padding can be cut off, which can cause decoding to fail later on. So, whenever dealing with base64 data in chunks, it is important to keep this in mind.

License

This project uses the MIT License.

qreeper's People

Contributors

txtatech avatar

Watchers

 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.