seckey 0.4.3

Use `memsec` protected secret memory.
Documentation

seckey

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

or placement syntax

#![feature(placement_in_syntax)]

use seckey::SecHeap;

let k = SecHeap <- [1];
assert_eq!([1], *k.read());