Coder Social home page Coder Social logo

robbiev / two-factor-auth Goto Github PK

View Code? Open in Web Editor NEW
415.0 23.0 102.0 4 KB

Generate 2FA tokens compatible with Google Authenticator

Home Page: http://garbagecollected.org/2014/09/14/how-google-authenticator-works/

License: MIT License

Go 100.00%
two-factor-authentication two-factor 2fa twofactorauth go golang

two-factor-auth's Introduction

two-factor-auth's People

Contributors

kemadz avatar mattrasband avatar robbiev avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

two-factor-auth's Issues

I don't know where the key is?

Warning: pasting the following URL into your browser exposes the OTP secret to Google:
https://www.google.com/chart?chs=200x200&chld=M|0&cht=qr&chl=otpauth://totp/hill@VM_0_5_centos%3Fsecret%3DBNPOY5S6VK3A3ML4R4OYFFJW6E%26issuer%3DVM_0_5_centos
Your new secret key is: BNPOY5S6VK3A3ML4R4OYFFJW6E
Your verification code is 427203
Your emergency scratch codes are:
30932611
86577771
96728177

[hill@TOVAOE2029 two-factor-auth]$ go run main.go BNPOY5S6VK3A3ML4R4OYFFJW6E
illegal base32 data at input byte 24
exit status 1

Question

Found your blog post about this. Just wondering, how do you check the 6 digit code is valid on the server side?

t

s

Base32 Decode or Encode

I see you're using "DecodeString". Is that intentionally or you it supposed to say "EncodeString"
key, err := base32.StdEncoding.DecodeString(inputNoSpacesUpper)

Thanks much

where is the key?

I am only a layman. i don,t know where the key is,
from the following parts. if the key is there?
$ cat /home/blc/liufeia/key
Warning: pasting the following URL into your browser exposes the OTP secret to Google:
https://www.google.com/chart?chs=200x200&chld=M|0&cht=qr&chl=otpa
Your new secret key is: 7QOJCMH2YGT
Your verification code for code 1 is 0942
Your emergency scratch codes are:
38106
appreciate

Manual Entry doesn't work

The ManualEntryKey doesn't work with the Google Authenticator app to create a new account. The key generated seems to be too short and in the incorrect format. The format expected is xxxx xxxx xxxx xxxx xxxx xxxx

How do you generate that style of key for use with manual entry?

On snapchat

Does anyone know how to bypass 2FA? I don't have access to the number anymore

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.