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

#427 in Memory management

Download history 522/week @ 2024-07-21 666/week @ 2024-07-28 391/week @ 2024-08-04 621/week @ 2024-08-11 604/week @ 2024-08-18 305/week @ 2024-08-25 394/week @ 2024-09-01 432/week @ 2024-09-08 626/week @ 2024-09-15 1147/week @ 2024-09-22 506/week @ 2024-09-29 881/week @ 2024-10-06 549/week @ 2024-10-13 905/week @ 2024-10-20 842/week @ 2024-10-27 740/week @ 2024-11-03

3,057 downloads per month
Used in 9 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
~45K SLoC