34 releases

0.10.1 Jul 31, 2018
0.9.3 Jan 27, 2020
0.9.1 Aug 1, 2018
0.9.0 Mar 29, 2018
0.2.5 Nov 13, 2016

#24 in Memory management

Download history 41/week @ 2019-10-15 77/week @ 2019-10-22 38/week @ 2019-10-29 75/week @ 2019-11-05 38/week @ 2019-11-12 78/week @ 2019-11-19 76/week @ 2019-11-26 36/week @ 2019-12-03 782/week @ 2019-12-10 3/week @ 2019-12-17 39/week @ 2019-12-24 2/week @ 2019-12-31 78/week @ 2020-01-07 8/week @ 2020-01-14 9/week @ 2020-01-21

420 downloads per month
Used in 3 crates

MIT license

17KB
353 lines

seckey

travis-ci appveyor crates license docs.rs

Use memsec protected secret memory.

exmaple

use seckey::SecKey;

let secpass = SecKey::new([8u8; 8]).unwrap();

{
	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);
}

lib.rs:

Use memsec protected secret memory.

Dependencies

~160KB