The string will be read by the client app used to scan the code and hashed using the same algorithm with the same secret salt value, and compared to the value in the QR code on the client side. I ended up with a solution where I would have a QR code containing a JSON object with a Name and a Key – a hashed and salted name string. This would also make it simple enough to be able to implement the same mechanism in the app used to scan the codes to verify the validity on the client side. To make sure the user is at the specified location and is scanning my QR code (and not a “fake” code created by someone else), I needed to add a way of “signing” each code with a value that only I – the provider of the QR code – could know. I have been testing out new functionality for “checking-in” to a location using QR codes. A step by step tutorial on how to generate QR codes and secure hashed strings with salt in Java.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |