security/2fa - The NetBSD Packages Collection

Command-line client for two-factor authentication

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".

Build dependencies

lang/go122 pkgtools/mktools pkgtools/cwrappers

Runtime dependencies


Binary packages

NetBSD 10.0aarch642fa-1.2.0nb34.tgz
NetBSD 10.0aarch642fa-1.2.0nb32.tgz
NetBSD 10.0earmv7hf2fa-1.2.0nb34.tgz
NetBSD 10.0earmv7hf2fa-1.2.0nb32.tgz
NetBSD 10.0i3862fa-1.2.0nb34.tgz
NetBSD 10.0i3862fa-1.2.0nb32.tgz
NetBSD 10.0x86_642fa-1.2.0nb34.tgz
NetBSD 10.0x86_642fa-1.2.0nb32.tgz
NetBSD 9.0aarch642fa-1.2.0nb34.tgz
NetBSD 9.0aarch642fa-1.2.0nb32.tgz
NetBSD 9.0earmv7hf2fa-1.2.0nb34.tgz
NetBSD 9.0earmv7hf2fa-1.2.0nb32.tgz
NetBSD 9.0i3862fa-1.2.0nb34.tgz
NetBSD 9.0i3862fa-1.2.0nb32.tgz
NetBSD 9.0x86_642fa-1.2.0nb34.tgz
NetBSD 9.0x86_642fa-1.2.0nb32.tgz
NetBSD 9.3x86_642fa-1.2.0nb35.tgz
NetBSD 9.3x86_642fa-1.2.0nb36.tgz
NetBSD 9.3x86_642fa-1.2.0nb36.tgz

Binary packages can be installed with the high-level tool pkgin (which can be installed with pkg_add) or pkg_add(1) (installed by default). The NetBSD packages collection is also designed to permit easy installation from source.

Available build options


Known vulnerabilities

The pkg_admin audit command locates any installed package which has been mentioned in security advisories as having vulnerabilities.

Please note the vulnerabilities database might not be fully accurate, and not every bug is exploitable with every configuration.

Problem reports, updates or suggestions for this package should be reported with send-pr.