BSD Ports

security/2fa 1.2.0nb59 NetBSD

Command-line client for two-factor authentication

System
NetBSD
Repository
pkgsrc
Maintainer
[email protected]
Last update
Commit
309977eb40
License
modified-bsd
Categories
security
Package size
751.3 KiB, 2102.4 KiB installed

Description

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

In the other systems

SystemPortVersion
NetBSDsecurity/2fa1.2.0nb59
FreeBSDsecurity/2fa1.2.0_47

Install

Binary package:

pkgin install 2fa

From pkgsrc:

cd /usr/pkgsrc/security/2fa && make install clean

Dependencies

No port depends on this one.

Commit history 7

DateCommitCreditsLog message
309977eb40 bsiegert Revbump all Go packages after go127 security update
96dc94755d bsiegert Revbump all Go packages after go127 security update
866d2b73e9 bsiegert Revbump all Go packages after go127 update
2338e838cd bsiegert Revbump all Go packages after go127 became the default
a4724da6b2 bsiegert Revbump all Go packages after go126 update

The latest 5 of 7 in the history this site was built from.