Registry / crypto / clear-on-drop

clear-on-drop

JSON →
library0.2.5rscratesunverified

Helpers for clearing sensitive data on the stack and heap when values are dropped.

# Cargo.toml [dependencies] clear_on_drop = "0.2.5"
INSTALL
IMPORT
SIG · CLEAR-ON-DROP
C
clear-on-drop
cryptorustv0.2.5
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Clear
use clear_on_drop::clear::Clear;

Clears a vector of sensitive data on drop.

use clear_on_drop::clear::Clear; fn main() { let mut secret = vec![0u8; 32]; secret.clear(); println!("Secret cleared"); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.2.5latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
17 hits · last 30 days
node
14
Amazon
1
Resources
clear-on-drop — cargo add clear-on-drop · libregistry