Skip to content

berendsliedrecht/nullize-ts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nullize

Inspired by zeroize, but dumb.

NOTE: this library has not been properly tested and should be seen as an experiment Only works with TypeScript ~5.2.2

A simple library that enables zeroing out memory when the Garbage Collector cleans it up.

Usage

import "nullize";

{
    using privateKey = Uint8Array.from([1, 2, 3, 4, 5, 6, 7, 8, 9, 0]);
    // privateKey is defined
    // ...
    // GC cleanup time
}

// Memory of privateKey is `[0,0,0,0,0,0,0,0,0,0]`

About

Zeroize memory inside TypeScript

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published