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

☆樱花仙子☆ 提交于 2019-12-31 02:44:11

问题


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 website and log the user in ... is there any app to store the user authentications and login directly using the QR code?)


回答1:


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.



来源:https://stackoverflow.com/questions/33867453/login-to-my-website-in-mobile-by-capturing-qr-code-from-the-pc-browser

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!