Install
Download Passgen for your platform, or build it from source.
The latest release is Passgen 0.5.0. Releases are published on GitHub, where you can also find the release notes and older versions.
What is new in 0.5
- The configuration is now written in TOML, and lives in
~/.config/passgen/config.toml. The oldpassgen.conffiles are no longer read. - Master passphrases are set up once with
--master-setup. Passgen asks for the passphrase instead of taking it as an argument, and catches typos in it. - Logins in the configuration remember which preset an account uses, so
passgen -d example.com -u usernameis enough. --offsetchanges the passphrase of an account.- Wordlists in the configuration can have a hash, so that they cannot change unnoticed.
--tokenis now--user.
All passphrases derived from a master passphrase change in this release. To get an old one back, use 0.4.0. See Configuration and Master passphrase for how the new features work, and the changelog for everything else.
Downloads
| Platform | File |
|---|---|
| Linux x86_64, static | passgen-0.5.0-linux-x86_64-static.tar.xz |
| Linux arm64, static | passgen-0.5.0-linux-aarch64-static.tar.xz |
| Linux x86_64 | passgen-0.5.0-linux-x86_64.tar.xz |
| Linux arm64 | passgen-0.5.0-linux-aarch64.tar.xz |
| Debian and Ubuntu, x86_64 | passgen_0.5.0_amd64.deb |
| Debian and Ubuntu, arm64 | passgen_0.5.0_arm64.deb |
| Fedora and RHEL, x86_64 | passgen-0.5.0-1.x86_64.rpm |
| Fedora and RHEL, arm64 | passgen-0.5.0-1.aarch64.rpm |
| macOS arm64 | passgen-0.5.0-macos-arm64.tar.xz |
| Source code | passgen-0.5.0-source.tar.gz |
| Checksums | SHA256SUMS |
Linux
The static archives contain a statically linked binary, which runs on any
distribution, and the manual page. Download the archive for your architecture,
and unpack it into /usr/local:
$ wget https://github.com/xfbs/passgen/releases/download/v0.5.0/passgen-0.5.0-linux-x86_64-static.tar.xz
$ sudo tar -xf passgen-0.5.0-linux-x86_64-static.tar.xz -C /usr/local --strip-components=1
$ passgen --version
If you do not want to install it, unpack the archive anywhere and run
bin/passgen from it.
The archives without static in their name are linked against the C library of
the system. They also contain the EFF wordlists, a
configuration that defines them, and the Passgen library for use in other
programs. They are built on Ubuntu 22.04, and need a distribution that is at
least as recent. The packages for Debian, Ubuntu, Fedora and RHEL contain the
same.
Debian and Ubuntu
Download the package for your architecture and install it with APT:
$ wget https://github.com/xfbs/passgen/releases/download/v0.5.0/passgen_0.5.0_amd64.deb
$ sudo apt install ./passgen_0.5.0_amd64.deb
Fedora and RHEL
Download the package for your architecture and install it with DNF:
$ wget https://github.com/xfbs/passgen/releases/download/v0.5.0/passgen-0.5.0-1.x86_64.rpm
$ sudo dnf install ./passgen-0.5.0-1.x86_64.rpm
macOS
Download the archive and unpack it into /usr/local:
$ curl -LO https://github.com/xfbs/passgen/releases/download/v0.5.0/passgen-0.5.0-macos-arm64.tar.xz
$ sudo tar -xf passgen-0.5.0-macos-arm64.tar.xz -C /usr/local --strip-components=1
Verifying downloads
Every release comes with a SHA256SUMS file, which lists the checksums of all
files of the release. Download it into the same folder, and check the files you
have downloaded against it:
$ wget https://github.com/xfbs/passgen/releases/download/v0.5.0/SHA256SUMS
$ sha256sum --check --ignore-missing SHA256SUMS
passgen-0.5.0-linux-x86_64-static.tar.xz: OK
Nix
The repository is a Nix flake. You can run Passgen without installing it:
$ nix run gitlab:passgen/passgen -- --preset apple2
Because passgen is also a Nix flake, you can add it to your profile simply by writing:
nix profile add github:xfbs/passgen/v0.5.0
Building from source
You need a C compiler and CMake. With those installed, this builds and installs Passgen:
$ git clone https://gitlab.com/passgen/passgen
$ cd passgen
$ cmake -S . -B build -DCMAKE_BUILD_TYPE=Release
$ cmake --build build
$ cmake --install build
See Building in the developer documentation for the dependencies and build options.
Nightly builds
Nightly builds are produced from the master branch on every change. They
contain the latest changes, but are not tested as thoroughly as releases. Use
them if you want to try something that has not been released yet. They also
cover riscv64 and WebAssembly, which releases do not.
Nightly builds are signed. To verify a signature, you need ssh-keygen and the
Passgen public key:
$ wget https://passgen.io/passgen.pub
$ ssh-keygen -Y verify -f passgen.pub -n file -I nightly@passgen.it \
-s passgen-nightly-linux-amd64.deb.sig < passgen-nightly-linux-amd64.deb
Good "file" signature for nightly@passgen.it with ED25519 key SHA256:k7BsqKVzJMDEmgomupIE4VE9Xe4V4ffP506BLkz4JGQ
If a verification fails, do not trust the build, and please report it.