Skip to content

aabiji/qr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

59 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A qr generator written in Rust. QR codes encode data into a image that can be scanned. The generator works and is also well tested. This crate is split into library (qrgen) and binary (qr) modules. To run, simply use cargo run.

Generation steps:

  1. Determine which encoding mode to use
  2. Encode the data
  3. Generate error correction codewords
  4. Interleave blocks if necessary
  5. Place the data and error correction bits in the matrix
  6. Apply the mask patterns and determine which one results in the lowest penalty
  7. Add format and version information

Example QR code

Docs:

About

QR code generator

Resources

Stars

Watchers

Forks

Languages