The securemem package

[Tags:bsd3, library]

SecureMem is similar to ByteString, except that it provides a memory chunk that will be auto-scrubbed after it run out of scope.

[Skip to Readme]


Versions 0.1.0, 0.1.1, 0.1.2, 0.1.3, 0.1.4, 0.1.5, 0.1.6, 0.1.7, 0.1.8, 0.1.9
Dependencies base (==4.*), byteable (>=0.1.1), bytestring, ghc-prim, memory (>=0.7) [details]
License BSD3
Copyright Vincent Hanquez <>
Author Vincent Hanquez <>
Stability experimental
Category Data
Home page
Source repository head: git clone
Uploaded Tue Jun 2 13:37:34 UTC 2015 by VincentHanquez
Distributions Arch:0.1.9, Debian:0.1.9, Fedora:0.1.3, FreeBSD:0.1.9, LTSHaskell:0.1.9, NixOS:0.1.9, Stackage:0.1.9, Tumbleweed:0.1.9
Downloads 95112 total (34 in the last 30 days)
0 []
Status Docs available [build log]
Last success reported on 2015-06-03 [all 1 reports]




Maintainer's Corner

For package maintainers and hackage trustees

Readme for securemem

Readme for securemem-0.1.9


Build Status BSD Haskell

Securemem provides memory chunks that allow auto-scrubbing of the memory after use, and constant time equality.

Documentation: securemem on hackage

Interacting with securemem

It's recommended to use the Byteable instance when providing an interface that takes a securemem. It allow legacy code, and work in progress code to interface with securemem more easily.

older base

On older base, the memory is not scrubbed: upgrade your GHC to 7.6.0 or above.


  • add a custom memory allocator that give mlocked memory chunks.