How valt's keys and paper key work, where to keep the passphrase, and what makes a passphrase strong. This is the same guide valt key-info shows in your browser before you fill in your paper key's information.

How valt works

One key pair

Normally you will need only a single key pair for all your file encryption needs: a public key and a private key.

  • valt encrypts (locks) files with your public key. It is safe to share: it can only encrypt files, not decrypt them.
  • Only your private key can decrypt (unlock) them. valt also signs what it encrypts, so any tampering is detected.

Your private key and its passphrase

  • Your private key is itself encrypted with a passphrase, so it can be stored anywhere: a stolen copy of the key file is useless on its own.
  • Back up the key file. Since it is encrypted, keep copies in more than one place: a password manager (as an attachment), a USB drive, or cloud storage. Without a copy, losing your computer leaves only the paper key to recover your files with.
  • A passphrase is simply a password made of several words: easier to remember, and much harder to guess. See Strong passphrases.
  • Your private key also contains your public key, so the public key can always be recreated from it (with the passphrase): if you lose the public key file, valt public-key makes it again. The private key is the one that matters.

The paper key

The paper key is a printed backup, for you and for whoever you would want to recover your files if you cannot: family, or an executor (see a sample). It contains:

  • your private key, as a QR code and as text, both still encrypted with the passphrase;
  • space to write the passphrase by hand, or notes saying where to find it;
  • step-by-step instructions for decrypting your files, and the people who can help with them.
To make it useful
Include a helper
At least one person who can help with the technical steps, who has agreed to help, with ways to reach them.
Print several copies
And decide where the passphrase goes: see below.
Store them apart
In separate secure places, such as a safe deposit box, a fire safe, or with people you trust.
Regenerate on change
Whenever this information changes, and destroy the old copies. valt will remind you to print and store it.

Where to keep the passphrase

Whoever recovers your files will need the passphrase as well as the paper key. There are two ways to make sure they can find it:

Write it on the paper key

It cannot be missed, but every copy with it written on is a complete key: anyone who holds that copy, and can reach your encrypted files, can decrypt them.

Keep it elsewhere, say where in the notes

More secure. A copy on its own is then useless, so copies can be given out more freely. But that place has to last, and stay findable by the right people.

Some good places to keep it
  • a password manager with emergency access: Bitwarden and 1Password let a person you choose request access, which you can refuse within a waiting period;
  • a sealed envelope held by your estate attorney or executor, to be released with your will;
  • a mix: one copy with the passphrase written on it in your most secure place, such as a safe deposit box, and copies with a note instead everywhere else.

If the passphrase is lost

If the passphrase is lost, and no paper key has it written on it (or notes saying where to find it), the files encrypted to your key cannot be recovered, by you or anyone else. There is no reset and no back door: that is what keeps them safe.

Strong passphrases

Why a passphrase

A multi-word passphrase is a much better choice than a typical password: it is far easier to remember. Just as with a password manager, the idea is that you remember one secret that gives you access to all of your encrypted data.

Since human memory is fallible, it is extremely important that you keep it on paper somewhere secure, in case you forget it or become incapacitated: that is what the paper key is for. If you use a password manager (strongly recommended), store your keys and passphrase in it too.

Strength depends on what it protects

How long a password takes to crack depends on how an attacker can try guesses:

Online account
Guesses are slow while they go through the site, which can limit them, but if the site's password database is ever stolen they can be tried offline, quickly or very quickly depending on how the site stored it. That is out of your control.
Encrypted file or key
Someone with a copy can guess offline, as fast as their hardware allows, but each guess is deliberately slow. age, the encryption tool valt uses, encrypts the key using scrypt, a computation designed to take a lot of time and memory for every single guess.

Your valt key is always the second case. valt judges its passphrase assuming a professional attacker: one with purpose-built hardware.

What makes one strong

Estimates from valt's strength checker, assuming a professional attacker:

ExampleTo rememberOnline account, if breached
by how the site hashes passwords
valt key
Summer2024!“complex” password easy 7 hoursvery weak, breached
My dog Oscarshort phrase easy 2 monthsweak
Tr0ub4dor&3word with substitutions hard 3 yearsgood, but breached
BkZB&XWGj%3Txrandom password hard 303 yearsstrong
tulip anvil morsel 7random words and a digit fair 33 million yearsstrong
repossess thursday flaky lazyrandom passphrase fair 560 million yearsstrong

Summer2024! meets the usual rules (upper and lower case, a digit and a symbol) yet is very weak everywhere, and Tr0ub4dor&3, the password from the xkcd comic below, is good only as a valt key. Both have also turned up in thousands of data breaches, so valt rejects them whatever their estimate: attackers try known passwords first.

A good passphrase requires randomness, and we humans are very bad at that. There's a famous xkcd comic on this subject that ends with this gem:

Through 20 years of effort, we've successfully trained everyone to use passwords that are hard for humans to remember, but easy for computers to guess.Randall Munroe

That comic makes another important point in its last panel: creating a mental scene to represent your passphrase is an excellent way to help remember it.

For how these estimates are made, see Strength in detail.

How valt helps

valt passphrase
Generates strong random passphrases to choose from.
valt keys
Checks the passphrase you choose when it creates your key: how long a well-equipped attacker would need to guess it, rejecting weak ones. It also checks a database of passwords exposed in data breaches; only the first 5 characters of a one-way hash of it are sent, never the passphrase itself.
valt pass-check
Checks any password or passphrase the same way.

Strength in detail

Use cases

Every strength check is made for one of two use cases, which decide the attacks that apply:

account
A password for an online account whose password hashing isn't under your control. Covers online login attempts (rate-limited and unrestricted) and, if the account's password database were ever breached, offline cracking under either a slow or a fast hashing scheme.
file
A password or passphrase protecting an encrypted file or private key, cracked entirely offline at a fixed, deliberately slow cost per guess (the scrypt computation that age, the encryption tool valt uses, applies to every guess), with attacker compute ranging from a single processor core to a large cluster. Your valt key is always this case.

Threat levels

The strength rating assumes one of four attackers, least to most capable:

casual
An opportunistic attacker with minimal resources.
motivated
An individual attacker with a real, focused effort behind it.
professional
An attacker with resourced, purpose-built hardware. valt assumes this level for key passphrases.
nation-state
An attacker with the largest realistic guessing power modeled.

Each report lists crack times for a range of attack scenarios, and bases its rating on those that fit the threat level. For a valt key, assuming a professional attacker, that is an offline attack on 1,024 processor cores. A passphrase that is strong enough there takes far longer on smaller hardware, and the report also shows the time for a nation-state cluster.

Breached passwords

Every check also looks the password up in the Have I Been Pwned database of passwords exposed in data breaches. A password found there is unsafe whatever its estimated strength, since attackers try those first.

valt does this without revealing the password. It hashes the password on your computer with SHA-1 (a one-way function: the hash cannot be turned back into the password) and sends only the first five characters of the hash. The service returns every breached password hash that starts with those characters, and valt looks for a match itself, on your computer. The password, and even its full hash, never leave your computer. (This is the service's range search, designed for exactly this.)

Try it

valt pass-check rates any password or passphrase. Choose the use case and threat level with -u account|file and -t casual|motivated|professional|nation-state; the defaults are account and professional.

$ echo 'repossess thursday flaky lazy' | valt pass-check -u file

✅ strong (4/4) against professional file attacker, no known breaches

Strength score based on the underlined crack time scenario:

- longer than the age of the universe to crack for motivated attacker (offline attack, scrypt hash, single core)
- longer than the age of the universe to crack for motivated attacker (offline attack, scrypt hash, 32 cores)
- 4 billion years to crack for professional attacker (offline attack, scrypt hash, 128 cores)
- 560 million years to crack for professional attacker (offline attack, scrypt hash, 1024 cores)
- 5 million years to crack for nation-state attacker (offline attack, scrypt hash, 100,000-core cluster)

See https://haveibeenpwned.com/Passwords for more on password breaches.
See https://github.com/phoggy/mrld#methodology-and-sources for how these estimates are calculated.