This site is being rebuilt and some pages are out of date. For current details, write to [email protected]. This notice goes away when the rebuild is done.

No analytics unless you allow it, no tracking. This site keeps in your browser the language you pick, the theme, its colour, which site you chose, the currency on the pricing page and that you closed this notice; signing in adds session cookies. The legal page has the details.

Sign in

Radar · Rust · Archive · Week 35 · Aug 25 – 31, 2025

Tooling: StrongBox – Simple, Safe Data Encryption for Rust

Worth knowingtooling

What changed
StrongBox is introduced as a simple, safe data encryption library for Rust.
Production impact
The source does not say.
Try it
Include strongbox in a project and encrypt a small string.
Source
this-week-in-rust.org/blog/2025/08/27/this-week-in-rust-614/

Understand it, then run it

Run it now

Todayrust
// This program demonstrates how you would use StrongBox once it is available.
// It does not compile until the crate is published and added to Cargo.toml.

fn main() {
    // In a real project you would add:
    //   strongbox = "0.1"
    // to your Cargo.toml and import the crate.
    //
    // let key = b"an example very secret key";
    // let sb = strongbox::StrongBox::new(key).expect("key size ok");
    // let plaintext = b"Hello, world!";
    // let ciphertext = sb.encrypt(plaintext).expect("encryption");
    // let decrypted = sb.decrypt(&ciphertext).expect("decryption");
    // assert_eq!(plaintext, &decrypted[..]);

    println!("StrongBox is a new crate for safe data encryption.");
}

What it printed when we ran it on Rust 1.98.1 (edition 2024)

StrongBox is a new crate for safe data encryption.

Run sends this program (for Solidity, the contract and its tests) to our own sandbox, where it is compiled and run once, with no network, and what it printed or the test report comes back here. Nothing is kept. Runs are counted per visitor for the day so everyone gets a turn; the details are on the legal page.

Written by gpt-oss-20b from the linked source · claims checked against the sources · archive, not individually reviewed