通过从PC浏览器捕获QR码,以移动设备登录我的网站 [英] Login to my website in mobile by capturing QR code from the PC browser

查看:91
本文介绍了通过从PC浏览器捕获QR码,以移动设备登录我的网站的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有用于通过PC浏览器中的qr代码在我的手机上登录我的网站的技术?

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

(移动设备将从PC捕获QR码,然后打开网站并登录用户...是否有任何应用程序可以存储用户身份验证并使用QR码直接登录?)

(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?)

推荐答案

您应该在GRC看一下Steve Gibson的SQRL:

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.

感谢您的评论,以澄清问题.

Thanks for your comments, clarifying the question.

您可以创建一个哈希值,将其存储在数据库中,然后将其添加到QR码中的URL中.然后将其转到网站,传递哈希值,对其进行验证并登录用户.

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.

您需要具有较长的哈希值且寿命很短,可能需要10到20秒,并且令牌会在使用时失效.

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.

这篇关于通过从PC浏览器捕获QR码,以移动设备登录我的网站的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆