This page is docs/INSTALL.md in the repository. The repository copy is the source; this is the same text with its links rewritten for the wiki.

Installing VeilVoice

There are three ways to get VeilVoice, and they differ in who is doing the checking rather than in what you end up with.

You runThe checking is done by
By handfour commandsyou, and you can see each one
With the install scriptone commandthe script, which refuses if anything fails
With the built-in verifierone command, no GnuPG neededa binary carrying the key
From sourcecargo buildthe compiler, plus whatever you read

The by-hand route is first on purpose. The install script does exactly what it describes and nothing else, but "run this script and trust it" is a strange thing to ask on behalf of a tool whose entire argument is that you should not have to trust anybody. If you only ever read one section here, read that one.

Status of this document. The install scripts and the portable verifier have been written and tested end to end on Windows against the real published v0.1.8 release -- the verifier checks that release's actual OpenPGP signature with no GnuPG installed -- and the by-hand chain has been checked on the same release. They have not yet been run by anyone other than the author, nor on a machine that did not build them. Until that has happened they should be treated as working but unproven. See What is not finished.


The fingerprint

Everything below rests on one value:

8101FB3BB28D02FB239E0CDF9CC1C7E7A9B5833A

That is the OpenPGP key VeilVoice releases are signed with. It is published in README.md, on the website, in the wiki, and in every release's notes, and it is hardcoded in the install scripts rather than fetched, because a fingerprint you download alongside the thing it is meant to authenticate is not a check, it is a formality.

The key's user ID is exactly tilas01, with no e-mail address attached.

If the fingerprint you see anywhere disagrees with the one above, stop.


1. By hand

Four commands, on any platform with GnuPG and a SHA-256 tool. Replace v0.1.23 and the archive name with the release and build you want; the releases page lists them.

# 1. Get the key, and check its fingerprint against the value above.
curl -fsSLO https://tilas01.github.io/veilvoice-website/assets/veilvoice-signing-key.asc
gpg --import veilvoice-signing-key.asc
gpg --fingerprint tilas01

Compare what that prints against the fingerprint above, character by character. This is the only step that anchors any of the others, and it is the one step nothing can do for you.

# 2. Get the release, the hash list, and the signature over it.
V=v0.1.23
B=https://github.com/tilas01/veilvoice/releases/download/$V
curl -fsSLO $B/veilvoice-$V-linux-x86_64.tar.gz
curl -fsSLO $B/SHA256SUMS
curl -fsSLO $B/SHA256SUMS.asc

# 3. Verify the signature over the hash list.
gpg --verify SHA256SUMS.asc SHA256SUMS

# 4. Verify the download against the now-trusted hash list.
sha256sum -c SHA256SUMS --ignore-missing

On macOS use shasum -a 256 -c SHA256SUMS --ignore-missing. On Windows, in PowerShell:

Get-FileHash -Algorithm SHA256 .\veilvoice-v0.1.23-windows-x86_64.zip
# then compare that hash against the matching line in SHA256SUMS

Why that order, and not the other one

Step 3 before step 4, always.

Checking the hash first proves that your download matches a list. It does not prove anything about the list. Whoever could replace the download could replace SHA256SUMS beside it, and the two would agree perfectly. The signature is the only thing that makes the hash list worth comparing against, and the fingerprint is the only thing that makes the signature worth checking.

A "good signature" warning about the key not being certified is expected and is not a problem:

gpg: Good signature from "tilas01" [unknown]
gpg: WARNING: This key is not certified with a trusted signature!

That says GnuPG has no web-of-trust path to the key, which is true, and is why you compared the fingerprint yourself in step 1. What matters is Good signature. BAD signature means stop.


2. With the install script

The scripts live in install/. Each one downloads the release, performs exactly the checks above in exactly that order, and refuses, naming the check that failed, rather than continuing past anything it could not verify. None of them has a flag to skip verification, because an installer with one is an installer whose verification is decorative.

Since the archive is checked against the signed list, the installed programs are then made to check themselves one more way: the script runs veilvoice verify on the freshly installed binary, which re-checks the signature and every file in the archive through an independent implementation and the signed per-file manifest. If that disagrees with what was installed, the script removes it and stops.

The one command, if you want it

For people who would rather paste one line than download, read and run, here it is per platform. It does everything above and refuses on any failure. Reading the script first, as shown below the one-liners, is safer and recommended, since piping a script straight into a shell means trusting it before you have seen it.

Linux and macOS:

curl -fsSL https://raw.githubusercontent.com/tilas01/veilvoice/main/install/install.sh | sh

Windows PowerShell:

irm https://raw.githubusercontent.com/tilas01/veilvoice/main/install/install.ps1 | iex

Linux and macOS

curl -fsSLO https://raw.githubusercontent.com/tilas01/veilvoice/main/install/install.sh
less install.sh          # it is 400 lines and it is meant to be read
sh install.sh
OptionEffect
--yesno prompts, and no optional components
--version v0.1.23a specific release rather than the latest
--prefix ~/.localwhere to install (default ~/.local)
--with-audacityinstall Audacity too
--with-gpginstall GnuPG if it is missing

Windows

irm https://raw.githubusercontent.com/tilas01/veilvoice/main/install/install.ps1 -OutFile install.ps1
notepad install.ps1      # read it first
powershell -ExecutionPolicy Bypass -File install.ps1

install.bat is a wrapper for people who would rather double-click; it passes its arguments straight through to install.ps1 and contains no logic of its own, deliberately, because two implementations of a verification routine means one of them is the stale one, and the stale one is the one that will be running when it matters.

OptionEffect
-Yesno prompts, and no optional components
-Version v0.1.23a specific release
-Prefix "D:\Tools\VeilVoice"where to install
-WithVBCableopen the VB-CABLE download page
-WithAudacityinstall Audacity through winget

The optional extras, and why they are questions

VeilVoice needs none of them. Each is offered once, as a question that defaults to no, and --yes / -Yes installs none of them at all: --yes means "do not ask me", and answering an unasked question by installing software on somebody's machine is precisely the behaviour that makes install scripts untrustworthy.

  • VB-CABLE (Windows) is what lets live mode feed a veiled microphone into a call. It is proprietary donationware by VB-Audio, not free software. The script only opens their download page: it will not silently fetch and run a third-party installer, which would be a strange thing to do inside a script whose whole subject is verifying what you run.
  • Audacity is a free audio editor, useful for editing a recording before veiling it: trimming silence, cutting a section, joining takes. Recording is what the Recording Studio does, and it does it because a take made in another program is a plaintext file sitting on your disk until you remember to shred it. Audacity is not bundled because it is GPL-2.0-or-later, which cannot be combined with this project's GPL-3.0-or-later.
  • GnuPG, where missing, because without it the signature cannot be checked at all. If you decline it, the script stops rather than falling back to "the hash matched", because a hash checked against an unverified list is not a security check.

What a refusal looks like

REFUSED: the signing key's fingerprint does not match
  expected  8101FB3BB28D02FB239E0CDF9CC1C7E7A9B5833A
  found     1234567890ABCDEF1234567890ABCDEF12345678

  This is the check that anchors every other one, so nothing further
  was attempted.

Nothing has been installed.

Every refusal says which check failed and installs nothing. There is no partial state to clean up: the download lands in a temporary directory that is removed on exit, and nothing is copied anywhere until every check has passed.


2b. With the built-in verifier

veilvoice verify does the same checks as GnuPG with nothing else installed -- the signing key and its fingerprint are compiled into the program. It downloads nothing.

Until 0.1.18 this was a separate veilvoice verify binary in every archive. It is a subcommand now, so there is one fewer file to find and one fewer name to learn; the checks and the code behind them are unchanged.

The short way

Open a terminal in the folder you downloaded to and run it. That is the whole instruction.

veilvoice verify

It finds the release near it and checks all of it, in this order, each step only if the one before it passed:

  1. the signature over SHA256SUMS;
  2. every archive, against SHA256SUMS;
  3. CONTENTS.sha256, against SHA256SUMS;
  4. every file you extracted, against CONTENTS.sha256, naming anything in that folder the release never published;
  5. all of it again through the GnuPG on your machine, if you have one.

Step 4 is the one worth having and it is new in v0.1.15. A hash over the archive tells you the zip is genuine. This tells you the program you are about to run is, which is the question anybody actually has. Nothing on disk records which archive a folder was extracted from, so a release now publishes CONTENTS.sha256 listing every file inside every archive with its SHA-256, staged before SHA256SUMS is computed so the signature covers it too:

SHA256SUMS.asc -> SHA256SUMS -> CONTENTS.sha256 -> each file on disk

Releases before v0.1.15 carry no contents list and are checked as far as step 2, which the tool says at the time rather than implying more.

Step 5 adds the VeilVoice public key to your keyring, tells you it did and how to remove it in one command, and runs gpg --verify. The signature is then checked by two independent implementations and the run fails if they disagree. A GnuPG that cannot run on your machine is not counted against the download: that is a fact about the computer and says nothing about the file.

The commands in section 2 above are still printed every time, because running GnuPG from inside the program you are checking makes the implementation independent and only you typing them makes the invocation independent.

The long way, one file at a time

veilvoice verify key
    # prints the fingerprint it carries. Compare it against the one above.

veilvoice verify file veilvoice-v0.1.23-linux-x86_64.tar.gz     --sums SHA256SUMS --sig SHA256SUMS.asc

The one thing it cannot carry

It cannot embed the expected hash of the file it is checking: a file cannot contain its own digest, because writing the digest in changes the file. So the hash comes from outside, and where it came from decides what a match proves. The tool keeps these apart and refuses to run both at once and report one answer.

Hash fromProvesRests on trusting
the published SHA256SUMSthe download is intactwhoever signed the release
somebody else's own build of the same tagthe release is reproduciblenobody in particular

The first is what most people want. The second is what makes the first worth anything: it closes the gap that a signed binary could contain something the source does not. It needs a build by somebody who is not the author, which is why this project cannot perform it for you.

# the stronger check, once somebody else has published a hash from their build
veilvoice verify file veilvoice-v0.1.23-linux-x86_64.tar.gz --sha256 <their hash>

veilvoice verify --explain     # the difference, at length

VeilVoice's own releases are built twice, in separate directories, and compared before they ship. That is the publisher checking their own work -- worth something, and not the same as somebody else checking it.

Why it depends on a large library

veilvoice verify uses pgp (rPGP), a pure-Rust OpenPGP implementation, and it is by far the largest dependency in this project. That cost was weighed rather than ignored. The alternative was hand-writing OpenPGP packet parsing and RSA PKCS#1 v1.5 verification, and a subtle mistake there would be a silent accept in the one tool whose entire job is not to silently accept. A widely used implementation that many people read is the better risk.

One consequence is recorded honestly rather than buried: that library brings in the rsa crate, which carries RUSTSEC-2023-0071 (the Marvin attack) with no fixed version available. The advisory concerns RSA private key operations. This tool only ever verifies a signature against a public key compiled into it -- there is no private key anywhere in this repository, and no secret for a timing side channel to leak. That reasoning is written out in .cargo/audit.toml, and because it is an argument about usage rather than about the crate, CI fails the build if a secret-key or decryption API ever appears in the verifier.


3. From source

Building it yourself is the strongest version of checking it: you are not trusting a download at all, only the source you can read. A fresh clone needs no secrets, no keys and no configuration, and nothing in the build reaches the network except cargo fetching the dependencies named in Cargo.lock.

What you need first

Rust 1.96.0 or newer. The repository pins that version in rust-toolchain.toml, so if you install Rust through rustup the right compiler is fetched for you the first time you build, whatever else you have. If your Rust came from a distribution package it may be older, and the desktop application will not compile on it. rustc --version tells you which one you have.

Git, to clone. Or download the source archive from the releases page and skip the clone.

On Linux, two system packages. Everything else the build needs is a Rust crate that cargo fetches. On Debian and Ubuntu:

sudo apt-get install -y libasound2-dev pkg-config

On Fedora: sudo dnf install alsa-lib-devel pkgconf-pkg-config. On Arch: sudo pacman -S alsa-lib pkgconf. The ALSA headers are what the audio layer links against, and pkg-config is how the build finds them. Without them the build stops with an error about a missing alsa.pc, which is not an obvious way of saying "install the audio headers", so it is worth doing first.

On macOS and Windows, nothing beyond the toolchain. Every release is built and tested on both without installing anything else, so if cargo runs, you have what you need. On Windows that means the MSVC toolchain rustup already asks you to install.

Building it

git clone https://github.com/tilas01/veilvoice
cd veilvoice
cargo build --release --workspace

The first build fetches and compiles every dependency and takes a while, on the order of ten minutes on a laptop. Later builds are much faster.

What a finished build looks like

The last line cargo prints is:

    Finished `release` profile [optimized] target(s) in 6m 52s

and two programs are in target/release/: veilvoice, the command line, and veilvoice-gui, the desktop application. Nothing is installed anywhere else, and nothing outside the folder you cloned into has been written to.

Check the build by asking it about itself:

./target/release/veilvoice info

That prints the version, the release channel and which optional features this build has, and it is also the quickest way to confirm the binary runs at all. It touches no network and reads no configuration.

One more package to run the desktop application on Linux. The window loads libxkbcommon-x11 at startup and exits without it, in a way that looks like a crash rather than a missing package. Most desktop systems already have it; a server or a container often does not. On Debian and Ubuntu the package is libxkbcommon-x11-0. The command line does not need it.

If you want to compare your build against the published one

A build from the same source is not automatically byte-for-byte identical to the release, and REPRODUCIBLE_BUILDS.md explains what has to match for it to be and how to check.

If you want to work on it

CONTRIBUTING.md covers the test suite, the checks that run before a push, and the house rules. The build above is the same one, so nothing here has to be undone first.


4. After you have it: portable, or installed

Once VeilVoice is unpacked it runs. Nothing has to be installed, nothing is written outside the folder, and deleting the folder removes it. Portable is the normal case, not a lesser one.

Installing exists for one reason: so that typing veilvoice in a terminal works. It is per-user, needs no administrator, and is reversed exactly.

veilvoice install          # copy, add to PATH, register for removal
veilvoice install --status # what is installed, and which copy is running
veilvoice uninstall --yes  # undo exactly those three things

The desktop application has the same thing on its install tab, with the list of what will change printed beside the button. Both call the same code -- veilvoice-setup -- rather than each having its own idea of how to edit PATH. A PATH edit is the one operation here that can damage a machine, so there is one implementation of it and one set of tests over it.

"Installed" and "you are running the installed copy" are reported separately, because they are different facts and confusing them is how somebody edits a portable folder and wonders why the installed one did not change.

Companion software

Four programs make VeilVoice easier to live with. None of them is part of VeilVoice and none of them is required.

What it isWho makes itLicence
VB-CABLEa virtual audio cable for WindowsVB-Audio Softwareproprietary donationware
BlackHolethe same, for macOSExistential AudioMIT
PipeWirethe audio server most Linux distributions already runthe PipeWire projectMIT
Audacitya free audio editor and recorderthe Audacity teamGPL-2.0-or-later

A virtual cable is what lets live mode feed a veiled microphone into a call. Without one live mode still runs; you simply have nowhere useful to send it. Audacity is a convenience for editing a file you already have, and is recommended, never embedded -- GPL-2.0-or-later cannot be combined with this project's GPL-3.0-or-later. It is not how you make a recording: the Recording Studio captures straight into the encrypted vault, so no unencrypted take is ever written anywhere.

veilvoice companions                      # report only: what is here, and what is not
veilvoice companions --install audacity   # the explicit yes, one named program

The same list is on the desktop application's install tab, one row each.

Three rules, and they are enforced in the shared library rather than in each front end, so neither can be more permissive than the other:

  • Nothing is ticked, because there is nothing to tick. There is no "install recommended extras" control, because that is the control through which unwanted software has historically arrived.
  • VeilVoice never runs somebody else's installer. VB-CABLE is proprietary and is a driver, so what is offered is to open VB-Audio's page -- their licence for you to accept, their installer for you to run. Fetching and executing an unverified third-party binary would be a strange thing for a program whose whole subject is verifying what you run.
  • Privilege is reported, never requested. A package manager that needs root has its command printed for you to run in a terminal. Neither front end will ask you for a sudo password.

Detection has three answers and not two: found (with the path it was found at), not found where it usually installs, or could not tell and here is why. The middle answer is a statement about where VeilVoice looked, not a claim about your machine -- if you keep Audacity somewhere unusual it will say "not found", and that is exactly what the words mean.


Where things get installed

PlatformDefault location
Linux, macOS~/.local/bin
Windows%LOCALAPPDATA%\Programs\VeilVoice

Both are per-user and need no administrator or sudo. Nothing is written outside them, no service is installed, no registry key is created beyond the user PATH entry on Windows, and nothing runs at startup.

To uninstall, run veilvoice uninstall --yes, or use the desktop application's install tab, or simply delete that directory -- the first two also remove the PATH entry and the Apps & features registration, which deleting the directory does not. VeilVoice keeps its own configuration under the usual per-user location for the platform; veilvoice lock status names the lock file's path if you have set one.


Known rough edges

Git for Windows' bundled GnuPG has a path-length limit. It is an MSYS build, and its agent puts a Unix-domain socket inside the home directory it is given, which cannot exceed about 108 bytes. install.ps1 keeps its temporary directory short for that reason, and says so plainly if your TEMP is long enough that even a short name overflows. Gpg4win is a native build and has no such limit.

~/.local/bin may not be on your PATH. The script and veilvoice install both say so if it is not, and print the line to add. Neither edits a shell profile for you.

macOS Gatekeeper. The binaries are not notarised, because notarisation requires an Apple Developer account, which requires a legal identity, which this project does not have. macOS will refuse to run them until you allow it explicitly in System Settings → Privacy & Security. This is stated rather than worked around: a project that publishes under a pseudonym cannot also be notarised, and pretending otherwise would be worse than the inconvenience.


What is not finished

Recorded here rather than left for you to discover:

  • Nobody but the author has run these scripts. They are tested end to end on Windows against the real v0.1.8 release, and the by-hand chain is verified on the same release. That is not the same as having been run on a machine that did not build them, and until it has been, treat "it works" as a claim with one source.
  • install.sh has now been run on Linux, and not on macOS. On x86-64 Linux it was run end to end against the published v0.1.14 release: it found the latest tag, downloaded the archive, checked the key's fingerprint, verified the signature over SHA256SUMS, matched the archive's hash against the signed list, installed both binaries, and the installed veilvoice info ran. Its refusals were exercised on the same machine: an unknown option, and a version that is not published, both refusing with a status of 1.

Running it found one defect, F-79, in what it says rather than in what it checks. macOS is still unrun, and its sh is not Linux's.

  • **The packaged installers (WiX, .deb, .rpm, Flatpak, Homebrew), the OpenBSD and NetBSD builds and the Gentoo ebuild are not built yet.** They are specified in ROADMAP.md. macOS Intel and Apple Silicon are already separate builds, and a single Windows executable already covers 10 and 11.
  • The portable verifier exists and is tested, including against the real published v0.1.8 signature, but like the scripts it has only been run by its author.

If you run these on a machine that did not build them, saying so in an issue is genuinely the most useful thing you could contribute.

This page is also Doc-INSTALL in the GitHub wiki, and both are generated from the same document in the repository.