3 unstable releases

Uses new Rust 2024

new 0.1.0 Mar 2, 2026
0.0.2 May 10, 2025
0.0.1 Jun 23, 2024

#1362 in Cryptography

MIT license

180KB
3.5K SLoC

Top-level public API for the Foctet workspace.

This crate re-exports:

  • core for framing, key schedule, handshake/rekey, and replay protection.
  • archive for encrypted single-file and split archive containers.
  • transport for optional split-stream adapters when the transport feature is enabled.

Quick Start

use foctet::{archive, core};

let _wire = core::WIRE_VERSION_V0;
let _chunk_size = archive::DEFAULT_CHUNK_SIZE;

For wire-format details, see SPEC.md in the workspace root.


foctet Crates.io License

Transport-agnostic end-to-end encryption layer for secure data transfer.

Crates

  • foctet-core: Framing, crypto, handshake/rekey state, replay protection.
  • foctet-archive: Encrypted single-file and split archives with recipient key wrapping.
  • foctet-transport: Thin split-stream adapters.
  • foctet: Top-level re-export crate.

Stability

  • Current releases are 0.x; breaking changes may occur while Draft v0 is finalized.
  • Wire-level changes must update both SPEC.md and test-vectors/.
  • Stable wire/API compatibility is planned for v1.

Examples

See examples

Dependencies

~6–24MB
~304K SLoC