Тёмный

Two-Factor Authentication (2FA) in Python 

NeuralNine
Подписаться 357 тыс.
Просмотров 44 тыс.
50% 1

Today we learn how to generate and verify one-time passwords (OTP) for two-factor authentication (2FA) in Python.
◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾
📚 Programming Books & Merch 📚
🐍 The Python Bible Book: www.neuralnine.com/books/
💻 The Algorithm Bible Book: www.neuralnine.com/books/
👕 Programming Merch: www.neuralnine.com/shop
🌐 Social Media & Contact 🌐
📱 Website: www.neuralnine.com/
📷 Instagram: / neuralnine
🐦 Twitter: / neuralnine
🤵 LinkedIn: / neuralnine
📁 GitHub: github.com/NeuralNine
🎙 Discord: / discord
🎵 Outro Music From: www.bensound.com/
Timestamps:
(0:00) Intro
(0:18) Time-Based OTP
(6:25) Counter-Based OTP
(8:28) Google Authenticator QRCode
(11:46) Outro

Наука

Опубликовано:

 

30 июл 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 43   
@Lorry127
@Lorry127 7 дней назад
Great video! Brief, informative, precise, and without BS. Keep up the fantastic work!
@captainobvious7898
@captainobvious7898 3 месяца назад
Excellent to the point video without wasting any time with nonsense. Learned exactly what I came here for, nothing more, nothing less. This is a perfect example of what all RU-vid tutorial videos should be.
@rafaArt680
@rafaArt680 Год назад
Best channel for python developers ever, I learn a lot from you man!!
@carecavoador
@carecavoador Год назад
Awesome, man. As always very interesting content showing practical use of nice things.
@Julie9009
@Julie9009 Год назад
Thank you 😊 This video came at just the right time for me. It will allow me to very easily add 2FA to an app that I'm currently developing.
@tracyprice8548
@tracyprice8548 Год назад
This is awesome. This is similar to the project I am building in my current class. I added similar code to flask app along with html files to create webpages😊🎉
@mindcreativestudios4709
@mindcreativestudios4709 Год назад
Thank you! So helpful and practical.
@paulthomas1052
@paulthomas1052 Год назад
Very useful demo. Thanks :)
@mikepenprogrammer2652
@mikepenprogrammer2652 Год назад
Awesome! Thank you for the great content.
@strycinek
@strycinek Год назад
Very useful. Thank you for the tutorial
@user-tw9oo1kd9g
@user-tw9oo1kd9g 11 месяцев назад
Thank you for great tutorial!
@Stl71
@Stl71 Год назад
Beautiful man! Can you make a video and explain how to have a different code for each computer?
@elricho72
@elricho72 9 месяцев назад
Great chanel !, awesome example, thank you
@user-po5nc8pw1b
@user-po5nc8pw1b 11 месяцев назад
Thank you for the video.
@1mrnewton
@1mrnewton Год назад
Great Great🔥🔥
@irfanshaikh262
@irfanshaikh262 Год назад
Great stuff
@vedantbarhate2028
@vedantbarhate2028 Год назад
hey brother can u plz. tell u r from which university and what are u learning like ur major and all.......
@kiiikoooPT
@kiiikoooPT 9 месяцев назад
this is very usefull, but I'm looking for kind of the oposite, like I want to make the authenticator itself, what I mean is, I want to make my own app where I can scan the qr code or something, and aply the uri there from any service, to keep them all in the same app, my own app. and you probably will ask why, well i have a bunch of acounts and 3 Auth apps, and some accounts dont work with some Auth apps, you need a specific auth app for that type of account, so I wonder if is possible to make your own Auth app and have all the accounts on it???
@thienviet3429
@thienviet3429 Год назад
I want to inform other people, that the key needs to be more than 19 letters. You will get an error, if you the key has less than 20 letters.
@limitlessplays007
@limitlessplays007 Год назад
Please make a video on python with keycloak it has all these features and 2fa and main thing is its open source
@rabeemohammed5351
@rabeemohammed5351 Год назад
I want ask you question please Can I send sms messages for my phone use python Or use USB Or use kivy I mean same apk sms messages in phone📱
@Salmanmushtaq-cs3jm
@Salmanmushtaq-cs3jm 2 месяца назад
I create the uri and generate the QRCODE, when I scan using google authenticator it shows "key not recognized"
@santaclausiscomingtotown3923
love!
@acrobite26
@acrobite26 11 месяцев назад
I get the following error: TypeError: argument should be a bytes-like object or ASCII string, not 'list' What do i do?😭
@c0rp0rat1on1
@c0rp0rat1on1 9 месяцев назад
I am trying to do this in bit different way but I get non base32 detection error and I am not able to log in to my broker plz help
@Jmignet
@Jmignet Год назад
Great Video! Is it advisable to have some sort of destruction mechanism on that QR Code? Otherwise, anyone that scans it would be able to add it to an authenticator app? Or does that QR Code already come with some sort of OTP encrypted?
@editsensei6876
@editsensei6876 Год назад
Plz Share code
@Salmanmushtaq-cs3jm
@Salmanmushtaq-cs3jm 2 месяца назад
when i generate qrcode and scan using google authenticator i received error "key not recognized"
@ozkanozdemir6255
@ozkanozdemir6255 Год назад
Great...
@1DannyJh
@1DannyJh Год назад
gracias!
@aadityasahoo6244
@aadityasahoo6244 8 месяцев назад
Hey what do i do when i try to scan the qr with google authenticator and it says that error: key not recognised? any solutions/ideas?
@mrpinkm4n
@mrpinkm4n 8 месяцев назад
pyotp.totp.TOTP(base64.b32encode(secret_key)) google authenticator needs converted base32 key
@-sothea2143
@-sothea2143 Год назад
👌💖
@abdullahsaid8561
@abdullahsaid8561 Год назад
the key has to be base64, not string
@kristianjackson6196
@kristianjackson6196 Год назад
Was wondering about this, thank you
@naveensc867
@naveensc867 6 месяцев назад
Hi ModuleNotFoundError: No module named 'pyotp'
@rajat6249
@rajat6249 Год назад
How to increase time from 30 seconds to 3 minutes or more??
@EdwinVanAssen
@EdwinVanAssen Год назад
You can't increase the duration that a TOTP token is valid. However you can add an extra argument in the verify function to increase the window of tokens that will be valid: # accept the current, previous and next token (for most applications this should be sufficient): pyotp.verify(otp=, valid_window=1) # accept the current, previous 3 and next 3 tokens: pyotp.verify(otp=, valid_window=3)
@samrijijkot
@samrijijkot Год назад
Comment for engagement
@shad-intech
@shad-intech Год назад
Happy I will not be writing the logic provided py PyOTP from scratch.
@tcgvsocg1458
@tcgvsocg1458 Год назад
too much import you show nothing...
@jorgechavarriaga395
@jorgechavarriaga395 Год назад
Nice ! Thanks! Great video! Little question.. I'm trying to in my provisioning_uri to send an image.. (to be able to have it in the autentication app ..like microsoft, etc).. but so far without success ... i have not found any documentation related.. any ideas ? uri = totp.provisioning_uri(name=user, issuer_name=company, image=url) url = "XXXXX/myimage.png" i dont receive any error.. but also no image in the app
Далее
2FA: Two Factor Authentication - Computerphile
12:34
Просмотров 501 тыс.
Secure Login System in Python
14:43
Просмотров 104 тыс.
Это конец... Ютуб закрывают?
01:09
Fast and Furious: New Zealand 🚗
00:29
Просмотров 35 млн
RSA Private & Public Key Encryption in Python
12:42
Просмотров 51 тыс.
The most important Python script I ever wrote
19:58
Просмотров 174 тыс.
two factor authentication python flask
3:32
If __name__ == "__main__" for Python Developers
8:47
Просмотров 390 тыс.
3 PYTHON AUTOMATION PROJECTS FOR BEGINNERS
17:00
Просмотров 1,6 млн
How Hackers Bypass Two-Factor Authentication (2FA)?!
9:20
Has Ubisoft Fixed Itself?
8:45
Просмотров 87 тыс.
Image Recognition with LLaVa in Python
10:56
Просмотров 7 тыс.