Blog: My Unusual Road of Life....
by kerminator

How QR Codes Work

How was it? Save stories you love and never lose them

Date:   5/1/2022 4:31:23 PM   ( 5 mon ) ... viewed 161 times

Pocket worthyStories to fuel your mind

How QR Codes Work and What Makes Them Dangerous—a Computer Scientist Explains

Here’s what happens when you scan one of those ubiquitous two-dimensional black-and-white patterns.

The Conversation

Scott Ruoti

Read when you’ve got time to spare.
The Conversation
More from The Conversation

QR codes are visual patterns that store data smartphones can read.

Among the many changes brought about by the pandemic is the widespread use of QR codes, graphical representations of digital data that can be printed and later scanned by a smartphone or other device.

QR codes have a wide range of uses that help people avoid contact with objects and close interactions with other people, including for sharing restaurant menus, email list sign-ups, car and home sales information, and checking in and out of medical and professional appointments.

QR codes are a close cousin of the bar codes on product packaging that cashiers scan with infrared scanners to let the checkout computer know what products are being purchased.

Bar codes store information along one axis, horizontally. QR codes store information in both vertical and horizontal axes, which allows them to hold significantly more data. That extra amount of data is what makes QR codes so versatile.
Anatomy of a QR code

While it is easy for people to read Arabic numerals, it is hard for a computer. Bar codes encode alphanumeric data as a series of black and white lines of various widths. At the store, bar codes record the set of numbers that specify a product’s ID. Critically, data stored in bar codes is redundant. Even if part of the bar code is destroyed or obscured, it is still possible for a device to read the product ID.

QR codes are designed to be scanned using a camera, such as those found on your smartphone. QR code scanning is built into many camera apps for Android and iOS. QR codes are most often used to store web links; however, they can store arbitrary data, such as text or images.

When you scan a QR code, the QR reader in your phone’s camera deciphers the code, and the resulting information triggers an action on your phone. If the QR code holds a URL, your phone will present you with the URL. Tap it, and your phone’s default browser will open the webpage.

QR codes are composed of several parts: data, position markers, quiet zone and optional logos.

The QR code anatomy: data (1), position markers (2), quiet zone (3) and optional logos (4).
Scott Ruoti, CC BY-ND

The data in a QR code is a series of dots in a square grid. Each dot represents a one and each blank a zero in binary code, and the patterns encode sets of numbers, letters or both, including URLs. At its smallest this grid is 21 rows by 21 columns, and at its largest it is 177 rows by 177 columns.

In most cases, QR codes use black squares on a white background, making the dots easy to distinguish. However, this is not a strict requirement, and QR codes can use any color or shape for the dots and background.

Position markers are squares placed in a QR code’s top-left, top-right, and bottom-left corners. These markers let a smartphone camera or other device orient the QR code when scanning it. QR codes are surrounded by blank space, the quiet zone, to help the computer determine where the QR code begins and ends. QR codes can include an optional logo in the middle.

Like barcodes, QR codes are designed with data redundancy. Even if as much as 30% of the QR code is destroyed or difficult to read, the data can still be recovered. In fact, logos are not actually part of the QR code; they cover up some of the QR code’s data. However, due to the QR code’s redundancy, the data represented by these missing dots can be recovered by looking at the remaining visible dots.
Are QR codes dangerous?

QR codes are not inherently dangerous. They are simply a way to store data. However, just as it can be hazardous to click links in emails, visiting URLs stored in QR codes can also be risky in several ways.

The QR code’s URL can take you to a phishing website that tries to trick you into entering your username or password for another website.

The URL could take you to a legitimate website and trick that website into doing something harmful, such as giving an attacker access to your account. While such an attack requires a flaw in the website you are visiting, such vulnerabilities are common on the internet.

The URL can take you to a malicious website that tricks another website you are logged into on the same device to take an unauthorized action.

A malicious URL could open an application on your device and cause it to take some action. Maybe you’ve seen this behavior when you clicked a Zoom link, and the Zoom application opened and automatically joined a meeting.

While such behavior is ordinarily benign, an attacker could use this to trick some apps into revealing your data.

It is critical that when you open a link in a QR code, you ensure that the URL is safe and comes from a trusted source. Just because the QR code has a logo you recognize doesn’t mean you should click on the URL it contains.

There is also a slight chance that the app used to scan the QR code could contain a vulnerability that allows malicious QR codes to take over your device. This attack would succeed by just scanning the QR code, even if you don’t click the link stored in it.

To avoid this threat, you should use trusted apps provided by the device manufacturer to scan QR codes and avoid downloading custom QR code apps.

Scott Ruoti is an assistant professor of computer science at the University of Tennessee.

Add This Entry To Your CureZone Favorites!

Print this page
Email this page
DISCLAIMER / WARNING   Alert Webmaster

CureZone Newsletter is distributed in partnership with

Contact Us - Advertise - Stats

Copyright 1999 - 2022

1.016 sec, (2)

Back to blog!
Add Blog To Favorites!
Add This Entry To Favorites!

Comments (20 of 291):
Re: Professional B… yangy… 29 h
Re: “Archaic Torso… colla… 31 h
Re: Truth is alway… colla… 31 h
Re: Key vitamins e… Hubba… 9 d
Re: Stop, drop, na… Barto… 9 d
Re: Heavenly Sleep… Winif… 9 d
Re: You are never … Lelan… 9 d
Re: Truth is alway… Harri… 9 d
Re: Want to find y… #2829… 13 d
Re: What happens w… Thint… 20 d
Re: What happens w… grove… 43 d
Professional Book … thoma… 55 d
Re: You are never … thoma… 55 d
Re: Ways parents d… kalyn… 55 d
Re: Ways parents d… pairq… 72 d
Re: Choose well or… japhi… 76 d
Re: Let's get a fe… been … 77 d
Re: 150 minutes of… wilsd… 81 d
Re: How to stop wa… jenny… 86 d
Re: How to stop wa… jorda… 86 d
All Comments (291)

Blog Entries (12 of 1932):
How QR Codes Work  5 mon
Years gone by...  5 mon
What has been going on?  6 mon
Where or what is real love? …  6 mon
Kerminator advice to improve…  6 mon
11 Simple Ways to Improve Yo…  6 mon
How to cure Candida with HON…  6 mon
Just What has a Modern Medic…  6 mon
Iodine is by far the best an…  6 mon
Try this element in your per…  6 mon
The female gender stress gap…  6 mon
Blueberries help you live lo…  6 mon
All Entries (1932)

Blogs by kerminator (6):
My Quest for the Truth of Lif…  9 mon  (310)
Absolute Truth Some Wisdom an…  12 mon  (291)
Ya’ think??  14 mon  (275)
Brain Boot Camp or Mindset Ma…  4 mon  (224)
Southern Etiquette or life in…  18 mon  (212)
Forgotten Words!  5 mon  (120)

Similar Blogs (10 of 185):
best data entry or …  by abbasi94  29 d
Banking and Account…  by NidhiSoftware  40 d
CellPhoneTracker  by jacobhowards1  41 d
MS Access Tutorial …  by cudoo  41 d
IT-blog  by DetLew  65 d
Development  by DerekLewis  65 d
seo  by DerekLewis  72 d
Essay Guides  by eastonaxel  4 mon
Surgaplay  by agensurgaplay  4 mon
EssayWriting  by eastonaxel  4 mon
All Blogs (1,019)

Back to blog!

Lugol’s Iodine Free S&H
J.Crow’s® Lugol’s Iodine Solution. Restore lost reserves.

Kidney Stones Remedy
Hulda Clark Cleanses

Free Powder Obsoletes Dentists!
This Powder will put Dentists out of Work!