37 releases

0.11.2 Aug 9, 2020
0.10.1 Jul 31, 2018
0.9.3 Jan 27, 2020
0.9.1 Aug 1, 2018
0.2.5 Nov 13, 2016

#9 in #secure

Download history 119/week @ 2020-06-01 4/week @ 2020-06-08 3/week @ 2020-06-15 24/week @ 2020-06-22 38/week @ 2020-06-29 44/week @ 2020-07-06 82/week @ 2020-07-13 6/week @ 2020-07-20 47/week @ 2020-07-27 65/week @ 2020-08-03 145/week @ 2020-08-10 65/week @ 2020-08-17 61/week @ 2020-08-24 56/week @ 2020-08-31 133/week @ 2020-09-07 13/week @ 2020-09-14

196 downloads per month
Used in 3 crates

MIT license

13KB
319 lines

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

lib.rs:

Use memsec protected secret memory.

Dependencies

~62KB