4

I am working on a scenario similar to web usage of WhatsApp. I want to scan a QR code on browser from inside mobile app and authenticate the user to login.

What would be the best way to send the authentication message in QR code? I am planning to use JSON as I need to send few string fields? Also, I plan to do base 64 encoding and decoding. Is it a good way to do it? Does anyone know how WhatsApp is doing it?

AskNilesh
  • 67,701
  • 16
  • 123
  • 163
Sushil
  • 8,250
  • 3
  • 39
  • 71
  • This my be help you https://stackoverflow.com/questions/37350286/mechanism-behind-qr-code-scanning-of-whatsapp-webapp – Rocky Dec 13 '17 at 09:52
  • This question is too broad. Do you know how to create the QR? Do you ask about how to encode the information? Or are you asking about what information to include into the QR? In stackoverflow is better to ask one thing each time and after you have tried doing it so you have some specific problem. – PhoneixS Dec 13 '17 at 10:43
  • A brief info: In my opinion you should use a token for the information (never show a QR with the real data as every body near can scan it). About encoding, use whatever is less characters (a token is already a string so don't use any encoding). About WhatsApp, scan their code with a generic QR scanner to see what information it has. – PhoneixS Dec 13 '17 at 10:48

0 Answers0