pkg.soopen package index

brew / rank 7078

Install sha2 with Homebrew, dnf

Implementation of SHA-256, SHA-384, and SHA-512 hash algorithms. Version 1.0.1 via Homebrew; verified 2026-06-22. Also installable with dnf: sudo dnf install sha2.

install

Additional install commands

macOS

Homebrewverified · 100%
brew install sha2

local Homebrew formula metadata

overview

Package summary

Implementation of SHA-256, SHA-384, and SHA-512 hash algorithms

Commands and aliases

  • sha2

history

Project history and usage

SHA-2 is Aaron D. Gifford's BSD-licensed C implementation of the SHA-224, SHA-256, SHA-384, and SHA-512 secure hash algorithms, accompanied by a small `sha2` command-line program.

Project history

Gifford dates the original implementation to a weekend in autumn 2000, specifically 14 October, when the SHA-256, SHA-384, and SHA-512 algorithms were newly described. The author distributes the implementation from his own cryptographic-hashing pages as source archives rather than through a public source-control forge.

Adoption history

The supplied package metadata records packages in Homebrew and DNF-based distributions. Its adoption is therefore best understood as a compact reference implementation and hashing utility preserved by package collections rather than a broad end-user application.

How it is used

The `sha2` executable computes SHA-2 message digests for files or input, while the C sources can also be embedded by developers who need the covered hash functions. It requires no persistent configuration or credentials.

Why package nerds care

The package captures an early open-source implementation of the SHA-2 family close to the algorithms' introduction. It remains interesting as small, auditable C code and as a historical alternative to the hashing commands bundled with larger cryptographic toolkits.

Timeline

  • 2000: Aaron D. Gifford implemented the newly described SHA-256, SHA-384, and SHA-512 algorithms in C.
  • Later: SHA-224 and SHA-1 support appeared on the author's consolidated BSD-licensed implementation page.

Related projects

  • The author's cryptographic code collection also includes SHA-1 and HMAC-SHA1 implementations; modern general-purpose toolkits provide overlapping digest commands and libraries.

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 13 platform targets.

Recommended review

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

executables

Installed executables

CommandKindExposureNote
sha2cliglobal 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-08-04
manager version1.0.1
manager updated2026-06-22
local dataok
upstreamnot checked
latest detectednot detected

https://aarongifford.com/computers/sha.html

install metadata

Package metadata

Package keybrew:sha2
Version1.0.1
Package managerHomebrew
Package manager pagehttps://formulae.brew.sh/formula/sha2
Homepagehttps://aarongifford.com/computers/sha.html
Upstream docshttps://aarongifford.com/computers/sha.html
LicenseBSD-3-Clause
Source archivehttps://aarongifford.com/computers/sha2-1.0.1.tgz
Last updated2026-06-22T08:08:16+02:00
Pulseupdated
Bottleavailable (on arm64_big_sur, arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, big_sur, catalina, monterey, sonoma, ventura, x86_64_linux)
Homebrew post-installnot defined
Servicenone declared

registry facts

Source database details

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

source database matches

Other package-manager records

Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.

dnf95%

sha2 1.0.1-32.fc45

SHA Implementation Library

http://www.aarongifford.com/computers/sha.html

sudo dnf install sha2
  • License: LicenseRef-Callaway-BSD
  • Category: Unspecified
  • Architecture: i686
  • Source Package: sha2
  • 2 dependencies
  • 2 provides
  • normalized package name match
  • Matched by: Sha2
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: sha2 from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst
dnf95%

sha2-devel 1.0.1-32.fc45

Development files for sha2

http://www.aarongifford.com/computers/sha.html

sudo dnf install sha2-devel
  • License: LicenseRef-Callaway-BSD
  • Category: Unspecified
  • Architecture: i686
  • Source Package: sha2
  • 2 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Sha2
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: sha2-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst

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 package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment
  • pkg.so package database
  • pkgdb category and tag curation