Two-Factor Authentication (2FA) in Python

Поделиться
HTML-код
  • Опубликовано: 2 окт 2024

Комментарии • 50

  • @thienviet3429
    @thienviet3429 Год назад +4

    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.

  • @captainobvious7898
    @captainobvious7898 5 месяцев назад +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 RUclips tutorial videos should be.

  • @PaulineLepre
    @PaulineLepre 11 дней назад

    I appreciate your efforts! 🙏 I wanted to ask something unrelated: 🤔 I have these words 🤨. (behave today finger ski upon boy assault summer exhaust beauty stereo over). What should I do with this? 🤷‍♂️

  • @kiiikoooPT
    @kiiikoooPT 11 месяцев назад +2

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

  • @andrewcropper163
    @andrewcropper163 7 дней назад

    Is there a way to use secret key and password where it wouldn’t ask again? We have a central username for downloading reports from a system. But introduced MFA recently. The import process doesn’t work as it’s asking for MFA. Essentially we have an SSIS package using python to login normally and now it asks for MFA. Sorry I haven’t explained it well. But I tried using the shared secret code from the QR code but just asks for the 6 digit code and then stops

  • @Stl71
    @Stl71 Год назад

    Beautiful man! Can you make a video and explain how to have a different code for each computer?

  • @Lorry127
    @Lorry127 2 месяца назад +1

    Great video! Brief, informative, precise, and without BS. Keep up the fantastic work!

  • @limitlessplays007
    @limitlessplays007 Год назад +1

    Please make a video on python with keycloak it has all these features and 2fa and main thing is its open source

  • @vedantbarhate2028
    @vedantbarhate2028 Год назад +1

    hey brother can u plz. tell u r from which university and what are u learning like ur major and all.......

  • @tracyprice8548
    @tracyprice8548 Год назад +2

    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😊🎉

  • @abishekmajee8064
    @abishekmajee8064 16 дней назад

    I have a problem with pip install pyotp, its showing some network error-WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 11002] getaddrinfo failed')': /simple/pip/, please help to install pyotp

  • @rafaArt680
    @rafaArt680 Год назад +2

    Best channel for python developers ever, I learn a lot from you man!!

  • @carecavoador
    @carecavoador Год назад +2

    Awesome, man. As always very interesting content showing practical use of nice things.

  • @Salmanmushtaq-cs3jm
    @Salmanmushtaq-cs3jm 4 месяца назад

    when i generate qrcode and scan using google authenticator i received error "key not recognized"

  • @Jmignet
    @Jmignet Год назад +1

    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?

  • @Salmanmushtaq-cs3jm
    @Salmanmushtaq-cs3jm 4 месяца назад

    I create the uri and generate the QRCODE, when I scan using google authenticator it shows "key not recognized"

  • @SalvillaJohnRey
    @SalvillaJohnRey 14 дней назад

    I just wanna ask if this is free?

  • @shad-intech
    @shad-intech Год назад

    Happy I will not be writing the logic provided py PyOTP from scratch.

  • @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📱

  • @1mrnewton
    @1mrnewton Год назад +1

    Great Great🔥🔥

  • @c0rp0rat1on1
    @c0rp0rat1on1 11 месяцев назад

    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

  • @BardUser-l7s
    @BardUser-l7s Год назад

    Thank you for the video.

  • @acrobite26
    @acrobite26 Год назад

    I get the following error:
    TypeError: argument should be a bytes-like object or ASCII string, not 'list'
    What do i do?😭

  • @abdullahsaid8561
    @abdullahsaid8561 Год назад +1

    the key has to be base64, not string

  • @elricho72
    @elricho72 11 месяцев назад

    Great chanel !, awesome example, thank you

  • @writetogupta
    @writetogupta Месяц назад

    Great

  • @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.

  • @aadityasahoo6244
    @aadityasahoo6244 10 месяцев назад

    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 10 месяцев назад

      pyotp.totp.TOTP(base64.b32encode(secret_key))
      google authenticator needs converted base32 key

  • @strycinek
    @strycinek Год назад

    Very useful. Thank you for the tutorial

  • @mindcreativestudios4709
    @mindcreativestudios4709 Год назад

    Thank you! So helpful and practical.

  • @mikepenprogrammer2652
    @mikepenprogrammer2652 Год назад

    Awesome! Thank you for the great content.

  • @paulthomas1052
    @paulthomas1052 Год назад

    Very useful demo. Thanks :)

  • @ПавелВылиток-р7ш

    Thank you for great tutorial!

  • @samrijijkot
    @samrijijkot Год назад

    Comment for engagement

  • @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)

  • @naveensc867
    @naveensc867 8 месяцев назад

    Hi ModuleNotFoundError: No module named 'pyotp'

  • @santaclausiscomingtotown3923
    @santaclausiscomingtotown3923 Год назад

    love!

  • @ozkanozdemir6255
    @ozkanozdemir6255 Год назад

    Great...

  • @irfanshaikh262
    @irfanshaikh262 Год назад

    Great stuff

  • @1DannyJh
    @1DannyJh Год назад

    gracias!

  • @-sothea2143
    @-sothea2143 Год назад

    👌💖

  • @tcgvsocg1458
    @tcgvsocg1458 Год назад +1

    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