pkg.soopen package index

brew / rank 9355

Install rsc_2fa with Homebrew

Two-factor authentication on the command-line. Version 1.2.0 via Homebrew; verified 2026-09-12.

install

Additional install commands

macOS

Homebrewverified · 100%
brew install rsc_2fa

local Homebrew formula metadata

overview

Package summary

Two-factor authentication on the command-line

Commands and aliases

  • 2fa

history

Project history and usage

2fa is a command-line authentication-code generator for named TOTP and HOTP secrets.

Project history

Russ Cox created 2fa as a compact command-line two-factor authentication agent written in Go. The project supports both time-based and counter-based one-time passwords and keeps its interface centered on adding, listing, and querying named keys.

Adoption history

The repository's focused scope and small codebase made 2fa a recognizable Unix-style authenticator among command-line users. Its official GitHub repository has accumulated substantial community interest, while the input records Homebrew distribution.

How it is used

Use `2fa -add name` to enroll a secret, `2fa -list` to list stored names, and `2fa name` to print a current code. With no arguments it prints codes for all time-based keys; `-clip` also copies a code to the clipboard.

Why package nerds care

2fa exemplifies the small, composable command-line security tool: enrollment and code generation fit into scripts and terminal workflows. Package users should note its deliberate simplicity also means secrets are stored unencrypted in a plain text file.

Timeline

  • 2014: The earliest public repository history dates to the project's initial Go implementation.
  • 2018: The repository's compact modern form added module metadata and vendored clipboard support.

Related projects

  • The utility implements the TOTP and HOTP styles of one-time passwords and can optionally integrate with the system clipboard.

security posture

Risk level: green

narrow executable package without higher-risk signals.

Risk classifier

green risk · low confidence · appliance

Why

  • narrow executable package without higher-risk signals

Signals

  • metadata:no-higher-risk-signals

Install behavior

  • No Homebrew post-install hook is recorded in formula metadata.
  • Homebrew bottle metadata is available for 12 platform targets.
  • Build metadata lists 1 build dependencies.

Recommended review

Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.

local files

Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.

Credential files

Credential-bearing paths to review before unattended agent runs.

Unix
~/.2fa

executables

Installed executables

CommandKindExposureNote
2facliglobal executable

freshness

Version and freshness

These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.

page generated2026-09-19
manager version1.2.0
manager updated2026-09-12
local dataok
upstreamcurrent
latest detectedv1.2.0

https://github.com/rsc/2fa

  • okNo freshness warnings were generated.

install metadata

Package metadata

Package keybrew:rsc_2fa
Version1.2.0
Package managerHomebrew
Package manager pagehttps://formulae.brew.sh/formula/rsc_2fa
Homepagehttps://pkg.go.dev/rsc.io/2fa
Repositoryhttps://github.com/rsc/2fa
Upstream docshttps://pkg.go.dev/rsc.io/2fa
LicenseBSD-3-Clause
Source archivehttps://github.com/rsc/2fa/archive/refs/tags/v1.2.0.tar.gz
Last updated2026-09-12T11:12:59Z
Pulseupdated
Build dependenciesgo
Bottleavailable (on arm64_big_sur, arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, big_sur, monterey, sonoma, ventura, x86_64_linux)
Homebrew post-installnot defined
Servicenone declared

registry facts

Source database details

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namersc_2fa
Version Scheme0
Revision0
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • stable

source trail

Generated from repository data

This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.

Used sources

  • Geiger risk classifier
  • cross-ecosystem install command graph
  • curated configuration and credential file locations
  • curated package history
  • package relationship graph
  • package version freshness
  • package-page enrichment
  • pkg.so package database
  • pkgdb category and tag curation