secret_mem 0.1.0

Rust library for securely managing sensitive data in memory.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use std::marker::PhantomData;

/// A secure container for storing secret value.
///
/// This structure is designed for scenarios where you need to
/// securely store sensitive information, such as cryptographic keys,
/// passwords, or other sensitive data.
///
/// The underlying memory management is handled using platform-specific
/// features to protect the memory (e.g., making it read-only, preventing
/// it from being swapped to disk, etc.).
pub struct SecretBox<T> {
    // TODO ...
    _phant: PhantomData<T>,
}