AES encryption

AES, the Advanced Encryption Standard, is the cipher most software uses to scramble data so only someone with the key can read it. AES-256 uses a 256-bit key. When a file is locked with a password, the password is first stretched into that key, so a strong password is what keeps the file safe.

What it does

AES takes a key and a block of data and produces bytes that look random to anyone without the key. With the key, the same steps run backwards and the data comes back exactly. Phones use it to encrypt their storage, browsers use it for HTTPS, and password-protected archives and PDFs use it for their contents.

Where the weakness really is

With a password-locked file, the cipher is rarely the problem. The password is. A six-letter word falls to guessing in minutes even through slow key stretching; four or five ordinary words strung together take far longer than anyone will spend. A password generator gives you one that is long and random.

Locking a file yourself

Encrypt file locks any file with AES-256-GCM in your browser and opens it again on the same page, with nothing uploaded. Send the password by a different route from the file, so one intercepted message does not give away both.

Frequently asked questions

Can AES-256 be cracked?

Not by trying keys. A 256-bit key has more possible values than any computer could try. Locked files are broken by guessing the password instead, which is why a long password matters far more than the cipher.

What does GCM add?

GCM is a mode that also checks the data. If a single byte of the locked file changes, or the password is wrong, opening it fails outright instead of giving back a damaged file.

Why does a password need stretching?

A password is short and guessable, a key must be 32 random-looking bytes. PBKDF2 turns one into the other and is made deliberately slow, hundreds of thousands of rounds, so each guess costs an attacker real time.