Crates.io | sensitive |
lib.rs | sensitive |
version | 0.10.3 |
source | src |
created_at | 2021-05-19 11:59:36.843179 |
updated_at | 2023-08-28 14:44:08.457537 |
description | Memory allocator for sensitive information |
homepage | |
repository | https://github.com/illdefined/sensitive |
max_upload_size | |
id | 399535 |
size | 61,789 |
This is a library of memory allocators and data structures to handle sensitive information, especially when interfacing with foreign and unsafe code.
It currently features:
Allocator
trait, andBox
, Vec
and String
.Add this to your Cargo.toml
:
[dependencies]
sensitive = "0.10"
The force-mlock
feature may be used to force allocations to be memory‐resident: If the memory cannot be locked, the allocation will fail. Without this feature, locking is attempted, but failures are ignored.
This code relies heavily on experimental nightly‐only APIs.