Registry / crypto / secstr

secstr

JSON →
library0.5.1rscratesunverified

A data type suitable for storing sensitive information such as passwords and private keys in memory, featuring constant time equality, mlock and zeroing out.

# Cargo.toml [dependencies] secstr = "0.5.1"
INSTALL
IMPORT
SIG · SECSTR
S
secstr
cryptorustv0.5.1
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.

SecStr
use secstr::SecStr;

Stores a password securely using SecStr.

use secstr::SecStr; fn main() { let secret = SecStr::from("my_password"); println!("Secret stored securely"); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.5.1latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
19 hits · last 30 days
node
16
Resources
secstr — cargo add secstr · libregistry