Crates.io | zeroize_alloc |
lib.rs | zeroize_alloc |
version | 0.1.2 |
source | src |
created_at | 2019-10-01 02:20:02.660285 |
updated_at | 2019-10-01 02:22:37.002001 |
description | A zeroizing allocator wrapper. |
homepage | https://github.com/DR-BoneZ/zeroize-alloc-rs |
repository | https://github.com/DR-BoneZ/zeroize-alloc-rs |
max_upload_size | |
id | 168998 |
size | 3,570 |
This crate zeros all memory before freeing it, so if you keep secrets on the heap, you can be sure they no longer exist once they are freed.
#[global_allocator]
static ALLOC: zeroize_alloc::ZeroizingAlloc<YourAllocator> = ZeroizingAlloc(YourAllocator);
If you want to use the default allocator, use std::alloc::System
.