Learn
Protected stores and .xkpack exports
What a protected side is
Any side can be marked protected. Its file contents — and optionally its names — are compressed (zstd or lz4) and then encrypted (XChaCha20-Poly1305) before anything is written. The data key is wrapped by a master key from either a password (through Argon2id) or a key file.
xksync protect create <job-id> <side-id> --password
xksync protect recovery <job-id> <side-id>
"Save recovery key" exports the wrapped data key as a separate file plus a Base32 string you can write down — keep it somewhere other than the protected side itself.
What happens with a wrong key or a damaged file
A wrong password or key file fails immediately when the store tries to unwrap its master key, and writes nothing. If a stored chunk is found to be damaged (corrupted or tampered with), it is refused rather than decrypted, and the copy that would have used it is not written — the target stays as it was.
Changing the password
Changing a protected side's password re-wraps the data key only; the data itself is not re-encrypted or re-written.
Exporting to a single file: .xkpack
Any side — plain or protected — can be exported as a single .xkpack file (XiKey Sync's own format, magic bytes XKPK1, footer XKPKEND1), to carry on a drive or archive somewhere else:
xksync pack export <job-id> <side-id> --out "D:\Archive\documents.xkpack" --password
xksync pack info "D:\Archive\documents.xkpack"
A password on the export is optional but recommended if the file will be stored or carried anywhere outside your control.
What's planned, not yet implemented
A key-file option for .xkpack exports (today, only a typed password is supported for exports) and a wider choice of compression (brotli, xz and deflate, alongside the zstd and lz4 that work today) are designed but not built yet.
Next steps
- Getting started with XiKey Sync
- Moving from GoodSync or FreeFileSync