Menu

Opening your content without weird

A locked album or file opens with the published format and any IPFS gateway: no account, no sign-in, no weird address.

A locked album or file does not need weird, an account, or a sign-in to open: the format is published (weirdlock1, Apache-2.0) and weird storage lock open works with no credential and no weird address.

  1. Know its CID. weird storage list (while you have an account), the output of weird storage add, or weird storage lock show. Keep it with your recovery kit.

  2. Fetch it from any IPFS gateway — and let the CLI check every block against the CID, so the gateway need not be trusted:

    weird storage lock open bafy… --gateway https://<any IPFS gateway>/ -o ./photos --unlock

    The content is read at <gateway>/ipfs/<cid>; any gateway that serves raw blocks (?format=raw) works. You can also fetch the folder with any other IPFS tool (for example ipfs get <cid>) and open the local copy:

    weird storage lock open ./bafy… -o ./photos --unlock
  3. Open it with whichever way in you have:

    • --unlock — a password (typed hidden; --password-fd/--password-env in scripts);
    • --recovery-kit kit.txt — the kit written by --recovery-kit or weird storage lock add-link --write-kit; its #k= line, or the base32: line typed by hand, is the key;
    • --link-key — paste a share link or its #k=… part;
    • --key NAME — your own key. If this computer lost it, put back the copy made with weird storage keys export NAME -o FILE: weird storage keys import FILE, then --key NAME.

Each file is written only after its whole encrypted stream authenticated. A single locked file (weird storage lock seal) opens the same way from its path. Any other implementation of weirdlock1 opens them too; the test vectors in weirdlock/testdata/vectors say exactly what it must do.

See also locked content and the weird storage lock commands.

This page is generated from the weird CLI; it changes when the CLI does.