zeroize_alloc 0.1.2

A zeroizing allocator wrapper.
Documentation
  • Coverage
  • 0%
    0 out of 2 items documented0 out of 1 items with examples
  • Size
  • Source code size: 3.2 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 770.88 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 9s Average build duration of successful builds.
  • all releases: 9s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • Documentation
  • dr-bonez/zeroize-alloc-rs
    2 1 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • dr-bonez

zeroize_alloc

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.

Usage

#[global_allocator]
static ALLOC: zeroize_alloc::ZeroizingAlloc<YourAllocator> = ZeroizingAlloc(YourAllocator);

If you want to use the default allocator, use std::alloc::System.