#protection #memory #secure

no-std seckey

Use memsec protected secret memory

38 releases

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

#224 in Memory management

Download history 540/week @ 2023-08-08 622/week @ 2023-08-15 493/week @ 2023-08-22 652/week @ 2023-08-29 614/week @ 2023-09-05 712/week @ 2023-09-12 593/week @ 2023-09-19 680/week @ 2023-09-26 628/week @ 2023-10-03 605/week @ 2023-10-10 845/week @ 2023-10-17 717/week @ 2023-10-24 762/week @ 2023-10-31 738/week @ 2023-11-07 666/week @ 2023-11-14 1165/week @ 2023-11-21

3,412 downloads per month
Used in 8 crates (4 directly)

MIT license

14KB
310 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

~0–10MB
~57K SLoC