Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8148093
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T14:34:47+00:00 2026-06-06T14:34:47+00:00

I have been reading a lot about QR codes and how the code itself

  • 0

I have been reading a lot about QR codes and how the code itself can lead to serious security risks. But one thing that I did not come across is the following.

In the following scenario:
I have a QR code which displays some of my data lets say:
– Name
– Address
– A list of things I’m allowed to do

And I scans my code to see its contents, add some stuf to the list of things that I’m allowed to do and reprint the QR code.
The next day I come to work scan my code and am allowed to do the extra thing I added to the code.

My question is: how can I stop this scenario from happening.
Note that it is not possible to check if my data is consistent with DataBase data.

More info:

I’m using phonegap in combination with Sencha Touch 2 to create my QR code reader.
It is an Android application designed only for Android 4.0 devices.
The QR codes are provided once a year.
If someone would scan his QR code of last year it would not work.
Note that: in theory if he’d change the date on the code that he would be able to get in, this is exactly what I’m trying to block.
Some employees have access to the application which reads the code.
The application does not have any way to verify the data on the QR code, so it has to be something using only the data on the QR code.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T14:34:48+00:00Added an answer on June 6, 2026 at 2:34 pm

    Sign the QR code data with a private key. The readers will need the public key to verify the QR code, but the public key need not be kept secret.

    If you use an ECDSA Secp256K1 key, the signature will only add about 68 bytes to the QR code data.

    Include the date of issue in the QR code as well. The reader will need a local clock to check that the QR code isn’t too old. If the reader doesn’t have a clock, you can at least keep track of the newest valid code you have ever seen. Any code issued more than a year before that date is definitely invalid.

    Both BouncyCastle and OpenSSL contain implementations of the code you’ll need.

    If it’s okay for the code readers/verifiers to contain all the information needed to generate a fake QR code, then you can use HMAC instead of ECDSA. That’s simpler and an HMAC can be as little as 16-bytes and still do the job.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been googling a lot about this, but I can't find a specific
I have been reading a lot about JQuery's deferred object. And I can see
I have been reading a lot about C++ casting and I am starting to
Lately I have been reading a lot of blog topics about big sites(facebook, twitter,
I have been reading a lot about how flash development/design had died, and as
I have been reading a lot about HTML 5 and some of the changes
I use jQuery. I have been reading a lot about selector performance and optimizing
I have been reading a lot about Double Buffering as I am working on
One of the virtues of Lisp is Macros. I have been reading a lot
I have been reading a lot about Reinforcement Learning lately, and I have found

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.