All Projects → scito → extract_otp_secret_keys

scito / extract_otp_secret_keys

Licence: other
Extract two-factor authentication (2FA, TFA) secret keys from export QR codes of "Google Authenticator" app

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to extract otp secret keys

Totp Cli
A cli-based pass-backed TOTP app
Stars: ✭ 76 (-64.98%)
Mutual labels:  otp, totp, 2fa
Wristkey
A free and open-source offline authenticator app for Wear OS.
Stars: ✭ 65 (-70.05%)
Mutual labels:  google-authenticator, qr-codes, 2fa
Aegis
A free, secure and open source app for Android to manage your 2-step verification tokens.
Stars: ✭ 2,692 (+1140.55%)
Mutual labels:  otp, totp, 2fa
Twofactor totp
🔑 Second factor TOTP (RFC 6238) provider for Nextcloud
Stars: ✭ 203 (-6.45%)
Mutual labels:  otp, totp, 2fa
otp-java
A small and easy-to-use one-time password generator library for Java according to RFC 4226 (HOTP) and RFC 6238 (TOTP).
Stars: ✭ 107 (-50.69%)
Mutual labels:  otp, totp, 2fa
php-totp
HOTP and TOTP token generation
Stars: ✭ 33 (-84.79%)
Mutual labels:  otp, totp, google-authenticator
Freeotpplus
Enhanced fork of FreeOTP-Android providing a feature-rich 2FA authenticator
Stars: ✭ 223 (+2.76%)
Mutual labels:  otp, totp, 2fa
Otp.net
A .NET implementation of TOTP and HOTP for things like two-factor authentication codes.
Stars: ✭ 424 (+95.39%)
Mutual labels:  otp, totp, 2fa
SimpleTOTP
A highly configurable yet simple to use TOTP based two-factor authentication processing module for SimpleSAMLphp.
Stars: ✭ 16 (-92.63%)
Mutual labels:  totp, google-authenticator, 2fa
crotp
CrOTP - One Time Passwords for Crystal
Stars: ✭ 62 (-71.43%)
Mutual labels:  otp, totp, 2fa
Onetimepassword
🔑 A small library for generating TOTP and HOTP one-time passwords on iOS.
Stars: ✭ 243 (+11.98%)
Mutual labels:  otp, totp, 2fa
2FAuth
A Web app to manage your Two-Factor Authentication (2FA) accounts and generate their security codes
Stars: ✭ 664 (+205.99%)
Mutual labels:  otp, totp, 2fa
apache 2fa
Apache two-factor (2FA) authentication with Google Authenticator based on Time-based One-Time Password (TOTP) or HMAC-based one-time password (HOTP) Algorithms.
Stars: ✭ 63 (-70.97%)
Mutual labels:  totp, google-authenticator, 2fa
rx-otp
HMAC-based (HOTP) and Time-based (TOTP) One-Time Password manager. Works with Google Authenticator for Two-Factor Authentication.
Stars: ✭ 79 (-63.59%)
Mutual labels:  otp, totp, google-authenticator
hotp-php
HMAC Based One Time Passwords in PHP. RFC4226 and RFC6238 compliant.
Stars: ✭ 51 (-76.5%)
Mutual labels:  otp, totp
openconnect-gui-menu-bar
OpenConnect Menu Bar - Connect/Disconnect/Status - for Mac OS X (supports Duo push/sms/phone, or Yubikey, Google Authenticator, Duo, or any TOTP)
Stars: ✭ 56 (-74.19%)
Mutual labels:  totp, google-authenticator
rci
🔢 better code inputs for react/web
Stars: ✭ 805 (+270.97%)
Mutual labels:  totp, 2fa
multiOTPCredentialProvider
multiOTP Credential Provider is a V2 Credential Provider for Windows 7/8/8.1/10/2012(R2)/2016 with options like RDP only and UPN name support
Stars: ✭ 121 (-44.24%)
Mutual labels:  otp, totp
otp-authenticator-webapp
A 'Google Authenticator' like Single Page Application
Stars: ✭ 69 (-68.2%)
Mutual labels:  otp, otpauth
passwordless
Passwordless authentication server, supports OTP, WebAuthn, plan to implement TOTP and mobile biometric authentication
Stars: ✭ 34 (-84.33%)
Mutual labels:  otp, otpauth

Extract TOTP/HOTP secret keys from Google Authenticator

Extract two-factor authentication (2FA, TFA) secret keys from export QR codes of "Google Authenticator" app

Usage

  1. Export the QR codes from "Google Authenticator" app

  2. Read QR codes with QR code reader

  3. Save the captured QR codes in a text file. Save each QR code on a new line. (The captured QR codes look like otpauth-migration://offline?data=...)

  4. Call this script with the file as input:

     python extract_otp_secret_keys.py -p example_export.txt
    

Requirement

The protobuf package of Google for proto3 is required for running this script. protobuf >= 3.14 is recommended.

pip install protobuf

Known to work with

  • Python 3.6.12 and protobuf 3.14.0
  • Python 3.8.5 and protobuf 3.14.0

Optional

For printing QR codes, the qrcode module is required

pip install qrcode[pil]

Alternative installation method

Alternatively, you can use a python virtual env for the dependencies:

python -m venv venv
. venv/bin/activate
pip install -r requirements-buildenv.txt
pip install -r requirements.txt

The requirements*.txt files contain all the dependencies (also the optional ones). To leave the python virtual env just call deactivate.

Technical background

The export QR code of "Google Authenticator" contains the URL otpauth-migration://offline?data=.... The data parameter is a base64 encoded proto3 message (Google Protocol Buffers).

Command for regeneration of Python code from proto3 message definition file (only necessary in case of changes of the proto3 message definition):

protoc --python_out=generated_python google_auth.proto

References

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].