Login to my website in mobile by capturing QR code from the PC browser

后端 未结 1 2103
长发绾君心
长发绾君心 2021-01-21 15:32

Is there any technique used to Login to my website, on my mobile, using a qr code from the PC browser ?

(The mobile will capture the QR code from pc then open the websi

相关标签:
1条回答
  • 2021-01-21 16:16

    You should have a look at SQRL from Steve Gibson at GRC: https://www.grc.com/sqrl/sqrl.htm

    This does exactly what you are looking for and best of all, the crypto has been done right.

    EDIT: Thanks for your comments, clarifying the question.

    You could create a hash value, store it in a database, then add that to the URL in the QR code. This would then go to the website, passing in the hash value, validating it and logging the user in.

    You would need to have a long hash with a short lifespan, maybe 10-20 seconds and expire the token on use.

    You would have had to authenticate the user on the website first, so you know who is logging in.

    0 讨论(0)
提交回复
热议问题