All Projects → k-saiki → mfa

k-saiki / mfa

Licence: MIT License
Generate TOTP(Time-based One-time Password) token with CLI.

Programming Languages

go
31211 projects - #10 most used programming language

Projects that are alternatives of or similar to mfa

SimpleTOTP
A highly configurable yet simple to use TOTP based two-factor authentication processing module for SimpleSAMLphp.
Stars: ✭ 16 (-5.88%)
Mutual labels:  totp, mfa
Authelia
The Single Sign-On Multi-Factor portal for web apps
Stars: ✭ 11,094 (+65158.82%)
Mutual labels:  totp, mfa
adfsmfa
MFA for ADFS 2022/2019/2016/2012r2
Stars: ✭ 86 (+405.88%)
Mutual labels:  totp, mfa
Cli
🧰 A zero trust swiss army knife for working with X509, OAuth, JWT, OATH OTP, etc.
Stars: ✭ 2,151 (+12552.94%)
Mutual labels:  totp, mfa
Nginx Sso
SSO authentication provider for the auth_request nginx module
Stars: ✭ 195 (+1047.06%)
Mutual labels:  totp, mfa
a12n-server
A ready-to-launch User and Authentication system for those that don't want to build it
Stars: ✭ 324 (+1805.88%)
Mutual labels:  totp, mfa
One Time
One Time Password (TOTP and HOTP) library for Clojure. TOTP/HOTP is widely used for Two Factor / Multi Factor Authentication.
Stars: ✭ 129 (+658.82%)
Mutual labels:  totp, mfa
Speakeasy
**NOT MAINTAINED** Two-factor authentication for Node.js. One-time passcode generator (HOTP/TOTP) with support for Google Authenticator.
Stars: ✭ 2,531 (+14788.24%)
Mutual labels:  totp, mfa
pyotp
Python One-Time Password Library
Stars: ✭ 1,930 (+11252.94%)
Mutual labels:  totp, mfa
Project03-A-TOTP
TOTP를 이용한 인증관리 Web/App 서비스, '다다익선'
Stars: ✭ 28 (+64.71%)
Mutual labels:  totp
google-auth-csharp
Google Authenticator TOTP C#
Stars: ✭ 30 (+76.47%)
Mutual labels:  totp
kagi
WebAuthn security keys and TOTP multi-factor authentication for Django
Stars: ✭ 17 (+0%)
Mutual labels:  totp
twothy
Two factor authenticator for CLI
Stars: ✭ 39 (+129.41%)
Mutual labels:  mfa
cotp
Trustworthy, encrypted, command-line TOTP/HOTP authenticator app with import functionality.
Stars: ✭ 45 (+164.71%)
Mutual labels:  totp
TotpAuthenticator
Two-factor authenticator via Google Authenticator app.
Stars: ✭ 19 (+11.76%)
Mutual labels:  totp
php-totp
HOTP and TOTP token generation
Stars: ✭ 33 (+94.12%)
Mutual labels:  totp
shibboleth-mfa-u2f-auth
U2F multifactor authentication plugin for Shibboleth IdPv3
Stars: ✭ 25 (+47.06%)
Mutual labels:  mfa
extract otp secret keys
Extract two-factor authentication (2FA, TFA) secret keys from export QR codes of "Google Authenticator" app
Stars: ✭ 217 (+1176.47%)
Mutual labels:  totp
OneTime
iOS, watchOS, & macOS One-Time Password client
Stars: ✭ 14 (-17.65%)
Mutual labels:  totp
2FAtoTray
 Copy 2FA tokens in a click (macOS)
Stars: ✭ 13 (-23.53%)
Mutual labels:  totp

mfa

Generate TOTP(Time-based One-time Password) token with CLI.

Installation

  • Download from Release.
  • Unzip and move to the directory of PATH.

Configuration

Default config file is $HOME/.mfa/secrets.yml or $HOME/.mfa/secrets.yaml .

service:
  - name: amazon
    secret: "your secret key"
  - name: google
    secret: "your secret key"
  - name: github
    secret: "your secret key"

You can change config file path to use environment variable.

$ export MFA_CONFIG=/path/to/file

Usage

Generate token

$ mfa gen amazon
999999

List services

$ mfa list
amazon
google
github

Use case

assume-role with direnv.

$ echo 'eval $(mfa gen aws | assume-role <profile name>)' > .envrc
$ direnv allow
direnv: loading .envrc
MFA code:
direnv: export +ASSUMED_ROLE +AWS_ACCESS_KEY_ID +AWS_SECRET_ACCESS_KEY +AWS_SECURITY_TOKEN +AWS_SESSION_TOKEN

TODO

  • Add test
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].