seckey

Crates.ioseckey
lib.rsseckey
version0.12.1
sourcesrc
created_at2016-08-30 07:40:15.560555
updated_at2023-03-01 09:37:01.882013
descriptionUse `memsec` protected secret memory.
homepage
repositoryhttps://github.com/quininer/seckey
max_upload_size
id6182
size18,775
quininer (quininer)

documentation

https://docs.rs/seckey/

README

seckey

travis-ci appveyor crates license docs.rs

Use memsec protected secret memory.

exmaple

use seckey::SecBytes;

let mut secpass = SecBytes::with(1, |buf| buf.copy_from_slice(&[8; 8][..]));

{
	assert_eq!([8u8; 8], *secpass.read());
}

{
	let mut wpass = secpass.write();
	wpass[0] = 0;
	assert_eq!([0, 8, 8, 8, 8, 8, 8, 8], *wpass);
}
Commit count: 72

cargo fmt