pkgsrc.se | The NetBSD package collection

./security/2fa, Command-line client for two-factor authentication

[ CVSweb ] [ Homepage ] [ RSS ] [ Required by ] [ Add to tracker ]


Branch: CURRENT, Version: 1.2.0nb50, Package name: 2fa-1.2.0nb50, Maintainer: bsiegert

2fa is a two-factor authentication agent.

"2fa -add name" adds a new key to the 2fa keychain with the given name. It
prints a prompt to standard error and reads a two-factor key from standard
input. Two-factor keys are short case-insensitive strings of letters A-Z and
digits 2-7.

"2fa name" prints a two-factor authentication code from the key with the
given name.

With no arguments, "2fa" prints two-factor authentication codes from all
known time-based keys.

The default time-based authentication codes are derived from a hash of the
key and the current time, so it is important that the system clock have at
least one-minute accuracy.

The keychain is stored unencrypted in the text file "$HOME/.2fa".

Required to build:
[pkgtools/cwrappers] [lang/go114]


Master sites:

Filesize: 5.964 KB


Version history: (Expand)

  • (2026-02-24) Updated to version: 2fa-1.2.0nb50
  • (2026-01-15) Updated to version: 2fa-1.2.0nb49
  • (2025-12-02) Updated to version: 2fa-1.2.0nb48
  • (2025-10-24) Package has been reborn
  • (2025-10-24) Package deleted from pkgsrc
  • (2025-10-16) Updated to version: 2fa-1.2.0nb47

CVS history: (Expand)


   2026-02-24 09:45:43 by Benny Siegert | Files touched by this commit (203)
Log message:
Revbump all Go packages after default version bump
   2026-01-15 20:55:00 by Benny Siegert | Files touched by this commit (202) | Package updated
Log message:
Revbump all Go packages after go125 update
   2025-12-02 20:25:26 by Benny Siegert | Files touched by this commit (202) | Package updated
Log message:
Revbump all Go packages after go125 update
   2025-10-16 20:00:06 by Benny Siegert | Files touched by this commit (200) | Package updated
Log message:
Revbump all Go packages after go125 update
   2025-10-08 08:54:42 by Benny Siegert | Files touched by this commit (200) | Package updated
Log message:
Revbump all Go packages after go125 update
   2025-09-06 15:17:15 by Benny Siegert | Files touched by this commit (195) | Package updated
Log message:
Revbump all Go packages after go125 security update
   2025-08-31 12:03:04 by Benny Siegert | Files touched by this commit (191)
Log message:
Revbump all Go packages after moving to go125
   2025-06-06 16:01:43 by Benny Siegert | Files touched by this commit (193) | Package updated
Log message:
Revbump all Go packages after go124 update