#memory-management #default

insectbox

OpenSSH inspired in-memory key security

1 unstable release

new 0.1.0 Mar 23, 2025

#87 in #memory-management

Download history 97/week @ 2025-03-19

97 downloads per month

MIT license

36KB
591 lines

InsectBox

This crate aims to provide in-memory security inspired by OpenSSH in-memory key encryption.

Warning

This crate is very unsafe and full of unsafe code. It should not be used for any real aplication, UNLESS it actually is deemed safe enough after reviewing the source code.

Features

Feature Description
secbox SecBox<T> and InsecBox<T> types
cryptbox CryptBox<T> and PlainBox<T> types

Note: the secbox feature is enabled by default

The utils module

This module is public for one simple reason: to allow other users to implement types similar or better than the ones provided in this crate. It also provides almost the same utilities as the memsec crate, but actually documents them.


lib.rs:

InsectBox

This crate aims to provide in-memory security inspired by OpenSSH in-memory key encryption.

Warning

This crate is very unsafe and full of unsafe code. It should not be used for any real aplication, UNLESS it actually is deemed safe enough after reviewing the source code.

Features

Feature Description
secbox SecBox<T> and InsecBox<T> types
cryptbox CryptBox<T> and PlainBox<T> types

Note: the secbox feature is enabled by default

The utils module

This module is public for one simple reason: to allow other users to implement types similar or better than the ones provided in this crate. It also provides almost the same utilities as the memsec crate, but actually documents them.

Dependencies

~0–8.5MB
~64K SLoC