Close Menu
TechCentralTechCentral

    Subscribe to the newsletter

    Get the best South African technology news and analysis delivered to your e-mail inbox every morning.

    Facebook X (Twitter) YouTube LinkedIn
    WhatsApp Facebook X (Twitter) LinkedIn YouTube
    TechCentralTechCentral
    • News
      Telkom wants Icasa's BEE rules eased for everyone, Starlink included

      Telkom wants Icasa’s BEE rules eased for everyone, Starlink included

      11 November 2026
      Vox veteran Jacques du Toit hangs up his gloves

      Vox veteran Jacques du Toit hangs up his gloves

      11 November 2026

      Jensen Huang scandal wipes $430-billion off Nvidia

      11 November 2026
      Vodacom targets satellite-to-phone service in South Africa next year

      Vodacom targets satellite-to-phone service in South Africa next year

      10 November 2026
      Vodacom eyes SA and Kenya for AI data centre hubs after Egypt - Shameel Joosub

      Vodacom eyes SA and Kenya for AI data centre hubs after Egypt

      10 November 2026
    • World
      John Ternus faces first big test as Apple CEO - John Ternus

      John Ternus faces first big test as Apple CEO

      2 November 2026
      Alleged Israeli spy company heavily targeted Starlink users

      How online ads were used to hunt Starlink users

      28 October 2026
      Anthropic's IPO stands alone

      Anthropic’s IPO stands alone

      23 October 2026
      PHP flaws trigger global scramble as hackers pounce

      PHP flaws trigger global scramble as hackers pounce

      22 October 2026
      OpenAI turns the tables on Apple in trade secrets fight

      OpenAI turns the tables on Apple in trade secrets fight

      15 October 2026
    • In-depth
      Ducking hell: inside Apple's hidden list of words the iPhone won't suggest

      Ducking hell: inside Apple’s hidden list of words the iPhone won’t suggest

      6 November 2026
      Why investors are souring on Netflix

      Why investors are souring on Netflix

      22 October 2026

      10 days that changed the course of AI

      21 September 2026
      Meta to the AI industry: slow down without us - Mark Zuckerberg

      Meta to the AI industry: slow down without us

      16 September 2026
      Google DeepMind CEO Demis Hassabis. Image: John Sears

      The plan to stop AI from breaking the world

      16 July 2026
    • TCS
      TCS+ | Old Mutual's Celiwe Ross on leading people through AI - Old Mutual

      TCS+ | Old Mutual’s Celiwe Ross on leading people through AI

      6 November 2026
      TCS+ | How the Apple ecosystem drives productivity for SMEs - Sudesh Pillay iStore and Kevin McLennan

      TCS+ | How the Apple ecosystem drives productivity for SMEs

      6 November 2026
      TCS+ | Vox on AI, data rules and omnichannel communication for SMEs

      TCS+ | Vox on AI, data rules and omnichannel communication for SMEs

      26 October 2026
      TCS | The Cape Town firm quietly connecting Eskom, Pep and 6 000 ATMs - Réan van Niekerk, Metacom

      TCS | The Cape Town firm quietly connecting Eskom, Pep and 6 000 ATMs

      23 October 2026
      TCS+ | Boards are underestimating the cost of a cyberattack, says Arctic Wolf - Jason Oehley and Andre Den Hond

      TCS+ | Boards are underestimating the cost of a cyberattack, says Arctic Wolf

      22 October 2026
    • Opinion
      Icasa's Sim rules need a privacy backstop - Lloyd Matthew and Heinz Vollmer

      Icasa’s Sim rules need a privacy backstop

      5 November 2026
      AI's boardroom honeymoon is over - Gary Stocks

      AI’s boardroom honeymoon is over

      22 October 2026
      Before South Africa licenses Starlink, it should look at Ukraine - Duncan McLeod

      Before South Africa licenses Starlink, it should look at Ukraine

      21 October 2026
      Nonkqubela Thathakahle Jordan-Dyani

      Why cybersecurity is now a national security issue for South Africa

      15 October 2026
      When a machine can choose, who does it become? Fanie van Rooyen

      When a machine can choose, who does it become?

      9 October 2026
    • Company News
      • 1Stream
      • Africa Data Centres
      • AfriGIS
      • Altron Digital Business
      • Altron Document Solutions
      • Altron Group
      • Arctic Wolf
      • Ascent Technology
      • AvertITD
      • BBD
      • Braintree
      • CallMiner
      • CambriLearn
      • CM.com
      • Contactable
      • CYBER1 Solutions
      • Digicloud Africa
      • Digimune
      • Domains.co.za
      • ESET
      • Euphoria Telecom
      • HOSTAFRICA
      • Incredible Business
      • iONLINE
      • IQbusiness
      • Iris Network Systems
      • Kaspersky
      • LSD Open
      • Mitel
      • NEC XON
      • Netstar
      • Network Platforms
      • Next DLP
      • Ovations
      • Paracon
      • Paratus
      • Publishared
      • Q-KON
      • SevenC
      • SkyWire
      • Solid8 Technologies
      • Telit Cinterion
      • Telviva
      • Tenable
      • Vertiv
      • Videri Digital
      • Vodacom Business
      • Vox
      • Wipro
      • Workday
      • XLink
    • Sections
      • AI and machine learning
      • Banking
      • Broadcasting and media
      • Cloud services
      • Contact centres and CX
      • Cryptocurrencies
      • Education and skills
      • Electronics and hardware
      • Energy and sustainability
      • Enterprise software
      • Fintech and payments
      • HealthTech
      • Information security
      • Internet and connectivity
      • Internet of things
      • Investment
      • IT services
      • Lifestyle
      • Policy and regulation
      • Public sector
      • Retail and e-commerce
      • Satellite communications
      • Science
      • SMEs and start-ups
      • Social media
      • Talent and leadership
      • Telecoms
      • Watts & Wheels
    • Events
    • Advertise
    TechCentralTechCentral
    Home » News » How QR codes work – and what makes them dangerous

    How QR codes work – and what makes them dangerous

    Among the many changes brought about by the pandemic is the widespread use of QR codes. But be wary of them.
    By The Conversation13 December 2023
    Twitter LinkedIn Facebook WhatsApp Email Telegram Copy Link
    Get breaking news on WhatsApp

    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, but there are some security risks. The Federal Trade Commission warned again this month about the danger of scanning a code from an unknown source.

    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, e-mail 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 barcodes on product packaging that cashiers scan with infrared scanners to let the checkout computer know what products are being purchased.

    Barcodes 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. Barcodes encode alphanumeric data as a series of black and white lines of various widths. At the store, barcodes record the set of numbers that specify a product’s ID. Critically, data stored in barcodes is redundant. Even if part of the barcode 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 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 colour 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.

    Read: The barcode at 50: how it changed the world

    Like bar codes, 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 e-mails, 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.

    When you open a link in a QR code, ensure that the URL is safe and comes from a trusted source

    A malicious URL could open an application on your device and cause it to take some action. Maybe you’ve seen this behaviour when you clicked a Zoom link, and the Zoom application opened and automatically joined a meeting. While such behaviour 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 recognise 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.The Conversation

    • The author, Scott Ruoti, is assistant professor of computer science, University of Tennessee
    • This article is republished from The Conversation under a Creative Commons licence

    Get breaking news alerts from TechCentral on WhatsApp

    Add TechCentral as a preferred source on GoogleFollow TechCentral on Google NewsGet breaking news on WhatsApp


    WhatsApp YouTube
    Share. Facebook Twitter LinkedIn WhatsApp Telegram Email Copy Link
    Previous ArticleWhat 2024 holds in store for Wi-Fi in South Africa
    Next Article Social grants in South Africa are going cashless

    Related Posts

    Telkom wants Icasa's BEE rules eased for everyone, Starlink included

    Telkom wants Icasa’s BEE rules eased for everyone, Starlink included

    11 November 2026
    Vox veteran Jacques du Toit hangs up his gloves

    Vox veteran Jacques du Toit hangs up his gloves

    11 November 2026

    Jensen Huang scandal wipes $430-billion off Nvidia

    11 November 2026
    Company News
    The hidden risks of fragmented IT and unenforced SLAs - ITC Systems Durban

    The hidden risks of fragmented IT and unenforced SLAs

    10 November 2026
    Why AI-powered customer experience will decide South Africa's festive retail winners - CM.com

    Why AI-powered customer experience will decide South Africa’s festive retail winners

    10 November 2026
    You do not have a data estate. You have copies of one - Ascent Technology, Johan Lamberts

    You do not have a data estate. You have copies of one

    10 November 2026
    Opinion
    Icasa's Sim rules need a privacy backstop - Lloyd Matthew and Heinz Vollmer

    Icasa’s Sim rules need a privacy backstop

    5 November 2026
    AI's boardroom honeymoon is over - Gary Stocks

    AI’s boardroom honeymoon is over

    22 October 2026
    Before South Africa licenses Starlink, it should look at Ukraine - Duncan McLeod

    Before South Africa licenses Starlink, it should look at Ukraine

    21 October 2026

    Subscribe to Updates

    Get the best South African technology news and analysis delivered to your e-mail inbox every morning.

    Latest Posts
    Telkom wants Icasa's BEE rules eased for everyone, Starlink included

    Telkom wants Icasa’s BEE rules eased for everyone, Starlink included

    11 November 2026
    Vox veteran Jacques du Toit hangs up his gloves

    Vox veteran Jacques du Toit hangs up his gloves

    11 November 2026

    Jensen Huang scandal wipes $430-billion off Nvidia

    11 November 2026
    Vodacom targets satellite-to-phone service in South Africa next year

    Vodacom targets satellite-to-phone service in South Africa next year

    10 November 2026
    © 2009 - 2026 NewsCentral Media
    Built and maintained by Chronon
    • Cookie policy (ZA)
    • TechCentral – privacy and Popia

    Type above and press Enter to search. Press Esc to cancel.

    Manage consent

    TechCentral uses cookies to enhance its offerings. Consenting to these technologies allows us to serve you better. Not consenting or withdrawing consent may adversely affect certain features and functions of the website.

    Functional Always active
    The technical storage or access is strictly necessary for the legitimate purpose of enabling the use of a specific service explicitly requested by the subscriber or user, or for the sole purpose of carrying out the transmission of a communication over an electronic communications network.
    Preferences
    The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
    Statistics
    The technical storage or access that is used exclusively for statistical purposes. The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
    Marketing
    The technical storage or access is required to create user profiles to send advertising, or to track the user on a website or across several websites for similar marketing purposes.
    • Manage options
    • Manage services
    • Manage {vendor_count} vendors
    • Read more about these purposes
    View preferences
    • {title}
    • {title}
    • {title}
    🇿🇦 Sign up to the TechCentral newsletter