6.4 Passphrases

A sealed secret is opened by the same bytes that sealed it. Where a passphrase is typed or read as text, two programs agree on its bytes only if they turn text into bytes the same way.

A program that takes a passphrase as text MUST normalize it to Unicode Normalization Form KC (NFKC, UAX #15) and use the UTF-8 encoding of the result as the passphrase's bytes, both to seal and to open.

A program that seals a secret under a passphrase given as text MUST refuse one shorter than 15 characters, counted as Unicode scalar values of the normalized text. A program MUST NOT apply any strength rule when it opens a sealed secret.

Edit this page