Skip to content

A dynamic QR code soultion with public-private key encryption

Notifications You must be signed in to change notification settings

samhoooo/dynamic-QR-code

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dynamic QR code

A dynamic QR code react app demo with public-private key encryption

Getting started

In the project directory, you can run:

npm start

Runs the app in the development mode.
Open http://localhost:3000 to view it in your browser.

The page will reload when you make changes.
You may also see any lint errors in the console.

Introduction

image

The dynamic QR is generated by using asymmetric encryption RSA algorithm. Frontend uses a public key to encrypt data, and server side keeps a private key which uses to decrypt data.

The following are the details of encryption:

Raw Text Format User ID with QR code generate time (concatenate by comma)

Example

User ID: A001

QR code generation time: 06-07-2021 02:48:44

A001,2022-06-07T02:48:44Z