# Install argon2 with Homebrew, apk, apt, dnf, MacPorts, pacman, zypper

Password hashing library and CLI utility. Version 20190702 via Homebrew; verified 2026-05-11.

## Install

```sh
sudo av install brew:argon2
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install argon2
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install argon2
```

  Evidence: MacPorts ports tree: devel/argon2/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- apk (92%):

```sh
sudo apk add argon2
```

  Evidence: Alpine Linux edge package indexes: argon2 from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz

- Debian apt (92%):

```sh
sudo apt install argon2
```

  Evidence: Debian stable package indexes: argon2 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- dnf (92%):

```sh
sudo dnf install argon2
```

  Evidence: Fedora Rawhide package metadata: argon2 from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst

- pacman (92%):

```sh
sudo pacman -S argon2
```

  Evidence: Arch Linux sync databases: argon2 from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- zypper (92%):

```sh
sudo zypper install argon2
```

  Evidence: openSUSE Tumbleweed package metadata: argon2 from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst

## Package facts

- **Package key:** brew:argon2
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/argon2>
- **Version:** 20190702
- **Source summary:** Password hashing library and CLI utility
- **Homepage:** <https://github.com/P-H-C/phc-winner-argon2>
- **Repository:** <https://github.com/P-H-C/phc-winner-argon2>
- **Upstream docs:** <https://github.com/P-H-C/phc-winner-argon2#readme>
- **License:** CC0-1.0 OR Apache-2.0
- **Source archive:** <https://github.com/P-H-C/phc-winner-argon2/archive/refs/tags/20190702.tar.gz>
- **Last updated:** 2026-05-11T15:59:32-04:00
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- argon2 (cli)
- argon2 (alias)

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_big_sur, arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, big_sur, catalina, monterey, sonoma, ventura

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 20190702
- Package-manager updated: 2026-05-11
- Local data: ok
- Upstream repository: https://github.com/P-H-C/phc-winner-argon2
- info: No cached GitHub release or tag data was available.
## Project history and usage

Argon2 is a memory-hard password-hashing function and command-line utility. The Homebrew package builds the reference C implementation from the Password Hashing Competition winner repository.

### Project history

The Password Hashing Competition began after its organizers concluded that modern applications lacked a widely accepted password-hashing standard. The PHC site says the competition ran from 2013 to 2015, received 24 candidates, shortlisted finalists, and selected Argon2 in July 2015.

Argon2 was designed by Alex Biryukov, Daniel Dinu, and Dmitry Khovratovich. The reference repository describes the implementation as C code for the PHC-winning function and documents the Argon2i, Argon2d, and Argon2id variants with time, memory, and parallelism parameters.

RFC 9106, published in September 2021 by the IRTF Crypto Forum Research Group, gave an implementer-oriented description of Argon2 version 1.3 with test vectors. It names Argon2id as the primary variant for implementations of the RFC, with Argon2d and Argon2i as supplementary variants.

### Adoption history

Argon2's adoption path moved from competition winner to reference implementation to language bindings and standards-track-adjacent guidance. The PHC site notes bindings for most languages, while RFC 9106 explicitly aims to simplify adoption of Argon2 in Internet protocols.

Package adoption is broad because the reference implementation is useful both directly and indirectly: developers install the CLI to benchmark or generate hashes, while distributions also build `libargon2` for applications, password managers, authentication systems, and language bindings.

### How it is used

The `argon2` executable reads the password from standard input and accepts a salt plus flags for variant, iterations, memory, parallelism, hash length, encoded output, raw output, and Argon2 version. The README also documents static and shared libraries for embedding the algorithm in C programs.

For package users, the CLI is often a test and interoperability tool rather than the main production integration. Its encoded hash output is useful for checking parameters and verifying that bindings or server frameworks produce compatible values.

### Why package nerds care

Argon2 is package-nerd catnip because a tiny CLI package exposes a major cryptographic primitive with tunable resource costs. It is one of the rare formulae where build flags, SIMD support, libraries, headers, and command-line behavior all matter to downstream consumers.

It also illustrates how security primitives travel through package ecosystems: a competition reference implementation becomes a distro library, then a dependency of higher-level language packages and authentication stacks.

### Timeline

- 2013: Password Hashing Competition begins.
- 2014: PHC submissions close and finalists are shortlisted.
- 2015-07: PHC announces Argon2 as the winner.
- 2021-09: RFC 9106 publishes an implementer-oriented Argon2 description and test vectors.

### Related projects

- PHC finalists recognized alongside Argon2 included Catena, Lyra2, Makwa, and yescrypt.
- BLAKE2b is the hash function used inside RFC 9106's Argon2 description.

### Sources

- <https://github.com/P-H-C/phc-winner-argon2>
- <https://www.password-hashing.net/>
- <https://www.rfc-editor.org/rfc/rfc9106>


## Security Notes

library-like package without higher-risk signals.

- **Geiger risk:** green / low
- library-like package without higher-risk signals

## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** argon2
- **Version Scheme:** 0
- **Revision:** 1
- **Head Version:** HEAD
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable

## Other Package-Manager Records

- Debian apt - argon2 - 0~20190702+dfsg-4+b2: normalized package name match | Debian stable package indexes: argon2 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | memory-hard hashing function - utility | https://github.com/P-H-C/phc-winner-argon2
- Debian apt - libargon2-1 - 0~20190702+dfsg-4+b2: normalized package name match | Debian stable package indexes: libargon2-1 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | memory-hard hashing function - runtime library | https://github.com/P-H-C/phc-winner-argon2
- Debian apt - libargon2-dev - 0~20190702+dfsg-4+b2: normalized package name match | Debian stable package indexes: libargon2-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | memory-hard hashing function - development files | https://github.com/P-H-C/phc-winner-argon2
- Ubuntu apt - argon2 - 0~20190702+dfsg-4build1: normalized package name match | Ubuntu 24.04 LTS package indexes: argon2 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | memory-hard hashing function - utility | https://github.com/P-H-C/phc-winner-argon2
- Ubuntu apt - libargon2-1 - 0~20190702+dfsg-4build1: normalized package name match | Ubuntu 24.04 LTS package indexes: libargon2-1 from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | memory-hard hashing function - runtime library | https://github.com/P-H-C/phc-winner-argon2
- Ubuntu apt - libargon2-dev - 0~20190702+dfsg-4build1: normalized package name match | Ubuntu 24.04 LTS package indexes: libargon2-dev from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | memory-hard hashing function - development files | https://github.com/P-H-C/phc-winner-argon2
- apk - argon2 - 20190702-r5: normalized package name match | Alpine Linux edge package indexes: argon2 from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | The password hash Argon2, winner of PHC | https://github.com/P-H-C/phc-winner-argon2
- apk - argon2-dev - 20190702-r5: normalized package name match | Alpine Linux edge package indexes: argon2-dev from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | The password hash Argon2, winner of PHC (development files) | https://github.com/P-H-C/phc-winner-argon2
- apk - argon2-libs - 20190702-r5: normalized package name match | Alpine Linux edge package indexes: argon2-libs from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | The password hash Argon2, winner of PHC (libraries) | https://github.com/P-H-C/phc-winner-argon2
- apk - argon2-static - 20190702-r5: normalized package name match | Alpine Linux edge package indexes: argon2-static from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | The password hash Argon2, winner of PHC (static library) | https://github.com/P-H-C/phc-winner-argon2
- dnf - argon2 - 20190702-10.fc44: normalized package name match | Fedora Rawhide package metadata: argon2 from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | The password-hashing tools | https://github.com/P-H-C/phc-winner-argon2
- dnf - libargon2 - 20190702-10.fc44: normalized package name match | Fedora Rawhide package metadata: libargon2 from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | The password-hashing library | https://github.com/P-H-C/phc-winner-argon2
- dnf - libargon2-devel - 20190702-10.fc44: normalized package name match | Fedora Rawhide package metadata: libargon2-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Development files for libargon2 | https://github.com/P-H-C/phc-winner-argon2
- pacman - argon2 - 20190702-6: normalized package name match | Arch Linux sync databases: argon2 from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | A password-hashing function (reference C implementation) | https://github.com/P-H-C/phc-winner-argon2
- zypper - argon2 - 20190702-4.5: normalized package name match | openSUSE Tumbleweed package metadata: argon2 from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | The reference C implementation of Argon2 | https://github.com/P-H-C/phc-winner-argon2
- zypper - argon2-devel - 20190702-4.5: normalized package name match | openSUSE Tumbleweed package metadata: argon2-devel from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | Development files for argon2 | https://github.com/P-H-C/phc-winner-argon2


## Related links

- [Source-control packages](https://www.automicvault.com/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Networking and protocol packages](https://www.automicvault.com/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Security and crypto packages](https://www.automicvault.com/pkg/security-crypto-tools/) - Matched security, identity, cryptography, password, signing, or certificate metadata.
- [dar](https://www.automicvault.com/pkg/brew/dar/) - Popular package that depends on this formula.
- [inspircd](https://www.automicvault.com/pkg/brew/inspircd/) - Popular package that depends on this formula.
- [opendht](https://www.automicvault.com/pkg/brew/opendht/) - Popular package that depends on this formula.
- [php](https://www.automicvault.com/pkg/brew/php/) - Popular package that depends on this formula.
- [php@8.1](https://www.automicvault.com/pkg/brew/php-8-1/) - Popular package that depends on this formula.
- [php@8.2](https://www.automicvault.com/pkg/brew/php-8-2/) - Popular package that depends on this formula.
- [php@8.3](https://www.automicvault.com/pkg/brew/php-8-3/) - Popular package that depends on this formula.
- [php@8.4](https://www.automicvault.com/pkg/brew/php-8-4/) - Popular package that depends on this formula.
- [badkeys](https://www.automicvault.com/pkg/brew/badkeys/) - Shares av.db curated category or tags: cli, cryptography, security.
- [bcrypt](https://www.automicvault.com/pkg/brew/bcrypt/) - Shares av.db curated category or tags: cli, cryptography, security.
- [botan](https://www.automicvault.com/pkg/brew/botan/) - Shares av.db curated category or tags: cli, cryptography, security.
- [ccrypt](https://www.automicvault.com/pkg/brew/ccrypt/) - Shares av.db curated category or tags: cli, cryptography, security.
- [cfssl](https://www.automicvault.com/pkg/brew/cfssl/) - Shares av.db curated category or tags: cli, cryptography, security.
- [gmssl](https://www.automicvault.com/pkg/brew/gmssl/) - Shares av.db curated category or tags: cli, cryptography, security.
- [gnupg-pkcs11-scd](https://www.automicvault.com/pkg/brew/gnupg-pkcs11-scd/) - Shares av.db curated category or tags: cli, cryptography, security.
- [gnutls](https://www.automicvault.com/pkg/brew/gnutls/) - Shares av.db curated category or tags: cli, cryptography, security.
- [sha1dc](https://www.automicvault.com/pkg/brew/sha1dc/) - Security-sensitive metadata or terminology overlaps. Shared terms: cli, cryptography, hashing, security.
- [jose](https://www.automicvault.com/pkg/brew/jose/) - Security-sensitive metadata or terminology overlaps. Shared terms: cli, cryptography, security.

## Combined YAML source

View the package source record on GitHub. [combined/argon2.yml](https://github.com/automic-vault/db/blob/main/combined/argon2.yml)


## Sources

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
