分享好友 最新动态首页 最新动态分类 切换频道
Lock Up Your Raspberry Pi With Google Authenticator
2024-12-26 21:18

Google Authenticator is a particularly popular smartphone application that can be used as a token for many two factor authentication (2FA) systems by generating a time-based one time password (referred to as TOTP). With Google Authenticator, the combination of your user name and password along with the single-use code generated by the application allows you to securely authenticate yourself in a way that would be difficult for an attacker to replicate.

Lock Up Your Raspberry Pi With Google Authenticator

That sounds great, but what if you don’t have a smartphone? That’s the situation that [Lady Ada] recently found herself in, and rather than going the easy route and buying a hardware 2FA token that’s compatible with Google Authenticator, she decided to build one herself based on the ESP8266. With the hardware and source documented on her site, the makings of an open source Google Authenticator hardware token are available for anyone who’s interested.

For the hardware, all you need is the ESP8266 and a display. Naturally [Lady Ada] uses her own particular spin on both devices which you can purchase if you want to create an identical device, but the concept will work the same on the generic hardware you’ve probably already got in the parts bin. Software wise, the code is written in CircuitPython, a derivative of MicroPython, which aims to make microcontroller development easier. If you haven’t tried MicroPython before, grab an ESP and give this a roll.

Conceptually, TOTP is relatively simple. You just need to know what time it is, and run an SHA1 hash. The time part is simple enough, as the ESP8266 can connect to the network and get the current time from NTP. The calculation of the TOTP is handled by the Python code once you’ve provided it with the “secret” pulled from the Google Authenticator application. It’s worth noting here that this means your 2FA secrets will be held in clear-text on the ESP8266’s flash, so try not to use this to secure any nuclear launch systems or anything, OK? Then again, if you ever lose it the beauty of 2-factor is you can invalidate the secret and generate a new one.

最新文章
高效释放手机内存:应用管理、缓存清理与云存储全面指南
智能手机在现代生活中已经成为了不可或缺的工具,但随着使用时间的增加,手机的存储容量会逐渐变得不足,影响手机的运行速度。释放手机内存容量的方法多种多样,以下将从应用管理、缓存清理、备份系统、云存储和定期清理等多个方面详细探讨
零基础打造个性化莆田,全方位搭建攻略
莆田搭建攻略,从零基础出发,详细讲解个性化打造过程。涵盖、主机选择、设计、功能开发等关键步骤,助你轻松创建专业、独特的。莆田建设前的筹备工作莆田建设流程莆田建设要点随着互联网的迅猛发展,已成为企业及个人展示形象、拓展业务的
Python爬虫工程师有前景吗?薪资多少?北京的工资惊呆我了
现在Python爬虫工程师的薪资大概多少啊?爬虫工程师的前景怎么样?发展方向是什么呢? 熟悉前端、数据库,懂点基本的linux 会各种库爬、解析取页面,会数据存储,会ajax数据爬取,会selenium&#x
淘宝客服专员和淘宝运营专员有什么区别
岗位职责:1.负责淘宝C店/小红书电商平台的日常运营,制定并执行推广计划,提高店铺流量,完成销售目标。2.制定并执行推广方案,包括各种营销工具、活动、促销等,以增加店铺曝光率及品牌知名度。3.分析运营数据,包括流量、转化率、客单价
香港CDN是否需要备案?选择香港高防CDN加速服务的优势解析
新用户专享:「香港/美国云服务器」新购6折 低至9元/月!点击查看活动介绍>>>在当前竞争激烈的商业环境中,企业网络运营常遭遇各种挑战。它们需确保网络运行既高效又稳定,同时还要兼顾安全与用户体验。再加上中国大陆的网站备案规定,使得
高仿和a货抖音橙子建站落地页
2021年06月04日王生抖音小风车,蓝V开通,企业号认证,私信卡片,引流链接,橱窗,跳转微信,在线预约,KS小钥匙,立即预约,升黄金等级,二手车播,橱窗开通 ,二手车直播资质,信息咨询,定位修改,团购达人,电商执照,代办执照抖音团购,小店开通,虚拟号码
高清美女写真一键生成:最强AI绘图工具评测与实用技巧
限时免费,点击体验最近超火的AI生图神器,坐拥3000美女的大男主就是你! https://ai.sohu.com/pc/generate/textToImg?_trans_=030001_yljdaimn 在这个充满社交媒体和视觉内容的时代,大家对美女写真越来越感兴趣。相信很多宝子们都曾幻想
走进水文化⑮∣凝结人类智慧的水工具(二)
水是生命之源,万物之本。中华民族自古就有以水为师、以水为鉴的传统,用水、治水的“水利文明”悠久灿烂,水的哲学思想历久弥新,水的美学文学旷古不衰,细水长流中包含着高深莫测的智慧。下面让我们一同开启水文化探寻之旅,感悟中华水利
福石控股 在 AI 应用领域的表现技术应用与创新: 福石控股 推出了基于 AI 的全链路智能营销平台 FlinkAi,可...
来源:雪球App,作者: 阿九6a6,(https://xueqiu.com/9903221663/316253898)在 AI 应用领域的表现技术应用与创新:推出了基于 AI 的全链路智能营销平台 FlinkAi,可实现策、创、编、发一站式智能营销,具备智能内容创作、智能账号管理和
视频号小店分销模式的深度解析与实战玩法!
在当今数字化时代,社交媒体已不仅仅是人们日常交流的平台,更成为了商家拓展市场、推动销售的重要渠道。其中,视频号小店分销模式以其独特的优势,迅速在电商领域崭露头角,成为众多商家追捧的焦点。视频号小店分销模式,是基于微信视频号
相关文章
推荐文章
发表评论
0评