Results 1 to 5 of 5

Thread: Need Suggestion : Making a Unique QR Code

  1. #1
    Join Date
    Aug 2015
    Location
    Gdansk, Poland
    Posts
    21
    Thanks
    3
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows Android

    Lightbulb Need Suggestion : Making a Unique QR Code

    Hi there,
    I start to learn about QRCode in Qt using existing library provided by QZXing Project and succesfully implemented standard QRCode encoder/decoder. My problem was to create unique QRCode that only understandable by my system environment. So I need your suggestion how to realize that.

    GOAL : Create unique QRCode, can not be regenerated using standard/conventional QRCode encoder. Except copy machine.

    LIMITATION : BW image color, No new library creation (since I just can create something like "Hello World" library, no more ), small modify in QZXing lib is OK.

    So that's all, don't hesitate to post your idea here I'll consider all possible solutions of yours. Extreme idea also approved
    Thank you in advance,
    xfrdzx ^^

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: Need Suggestion : Making a Unique QR Code

    I do not see any reason to reinvent the QR Code of the libraries that can render one for you. If you need a custom data payload that is tamper resistant then use a byte encoded form of QR Code, encrypt your payload and/or protect integrity with an HMAC or similar.

  3. The following user says thank you to ChrisW67 for this useful post:

    Frdz (29th August 2015)

  4. #3
    Join Date
    Aug 2015
    Location
    Gdansk, Poland
    Posts
    21
    Thanks
    3
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows Android

    Default Re: Need Suggestion : Making a Unique QR Code

    Firstly I thank you for your response ChrisW67,
    This is my first time hear about HMAC, I'll check it soon.
    Thinking about using encryption, did you mean an encryption with secret & public key where the public key used to create the QRCode? If so, if there's any intruder(s), they still can read the public key using standard QRDecoder even they don't know what the data means inside, and can reproduce the same image based on that public key. CMIIW
    Things that I want is something like this : Suppose your apartment keycard using QRCode (instead of RFID or similar in fact), if someone with bad intention take a pict of your card and intend to make the replica, they will fail due to get incorrect data while read it using standard QRDecoder and they will get different image while trying to encode those incorrect data.
    I have restrain my problem scope to only ruin the standard reader/decoder itself while reading the code.
    Something ever occured in my head is :
    - Reordering the matrix, if it consist
    - Add additional pixel into the encoded image
    - Rearrange the 3 corner boxes with strange positioning
    - Make my own model (something like QString::toQByteArray::toQMatrix::toQImage), but thinking the next decoding just make me crazy (corner detection, turned position, etc.)
    Since I'm not finished yet in understanding QZXing technique, IDK which ways will work & easier to do. Just hope someone here experiencing with this can show me the easier ways.

  5. #4
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: Need Suggestion : Making a Unique QR Code

    Suppose your apartment keycard using QRCode (instead of RFID or similar in fact), if someone with bad intention take a pict of your card and intend to make the replica
    Then they already have a perfect replica of the original. They do not need to read, decode or re-encode the data: just print a copy of the image... or even just show the image on the screen of their camera to the reader.

    If you are wanting to write a deliberately corrupted QR image then you could mangle the Reed-Solomon error correction bits in a way known only to your reader. These bits sit mostly adjacent to, and between, top- and bottom-left alignment blocks.

  6. The following user says thank you to ChrisW67 for this useful post:

    Frdz (29th August 2015)

  7. #5
    Join Date
    Aug 2015
    Location
    Gdansk, Poland
    Posts
    21
    Thanks
    3
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows Android

    Default Re: Need Suggestion : Making a Unique QR Code

    Then they already have a perfect replica of the original. They do not need to read, decode or re-encode the data: just print a copy of the image... or even just show the image on the screen of their camera to the reader.
    Yes, you're right. I can manage it outside of my program. Thats why I placed it as exception in my first post.
    And what I struggling now is to double my security. Closing as many as holes for hacking posibbilities.

    If you are wanting to write a deliberately corrupted QR image then you could mangle the Reed-Solomon error correction bits in a way known only to your reader. These bits sit mostly adjacent to, and between, top- and bottom-left alignment blocks.
    Yeah, seems like what I'm looking for.
    Really appreciated of your help, man! Many thanks

Similar Threads

  1. Making my central code better
    By Momergil in forum Newbie
    Replies: 8
    Last Post: 16th September 2011, 02:24
  2. Smart Code completion , making default
    By udit in forum Qt Tools
    Replies: 1
    Last Post: 14th September 2009, 11:08
  3. changes in code not making any difference in output
    By sh123 in forum Qt Programming
    Replies: 13
    Last Post: 10th January 2009, 09:44
  4. The unique key
    By igor.alexandrov in forum Qt Programming
    Replies: 9
    Last Post: 26th January 2008, 01:27
  5. Making source code available
    By vermarajeev in forum General Discussion
    Replies: 1
    Last Post: 29th June 2007, 23:01

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.