Skip to content

Instantly share code, notes, and snippets.

View Celeo's full-sized avatar

Matt Boulanger Celeo

  • USA
View GitHub Profile
@Celeo
Celeo / main.rs
Created November 24, 2025 06:34
Playing with encryption in Rust
//! Example of E2EE setup with Diffie-Hellman key exchange, PBKD2 derivation,
//! and AES GCM SIV AEAD data encryption.
#![deny(unsafe_code)]
#![deny(clippy::all)]
#![deny(clippy::pedantic)]
use aes_gcm_siv::{
Aes256GcmSiv, Nonce,
aead::{Aead, KeyInit, OsRng},