WebAssembly

Run Passgen as a sandboxed WebAssembly executable on any operating system.

Passgen can be built as a WebAssembly executable that follows the WASI standard. It runs on any operating system that has a WASI runtime. It is also sandboxed: it has no access to anything that is not explicitly granted to it.

The WASI build is available as a nightly build.

Runtime

To run it, you need a WASI-compatible runtime, such as Wasmtime. See its installation instructions. If you have Cargo, you can install it with:

$ cargo install wasmtime-cli

Running Passgen

Passgen needs some permissions to access random data and to load your configuration from your home directory:

$ wasmtime run --dir /dev --dir ~ --env HOME=$HOME passgen-nightly-wasi.wasm -- -p apple1
QZv-Wk9-UOU-IN6
$ wasmtime run --dir /dev --dir ~ --env HOME=$HOME passgen-nightly-wasi.wasm -- -p uuid
942e6cbf-50b6-4bc6-8675-947f8fe85031

The configuration that this reads is ~/.config/passgen/config.toml, as described in Configuration.

If you run into problems with the WASI build, please open an issue.