secure-destroy-key
Destroy a Secure Buffer key safely
Last updated 3 years ago by emilbayes .
ISC · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install secure-destroy-key 
SYNC missed versions from official npm registry.

secure-destroy-key

Build Status

Destroy a Secure Buffer key safely

A piece in the puzzle towards secure-key-management

Usage

var destroyKey = require('secure-destroy-key')
destroyKey(key)

:warning: Warnings:

  • Once the key is destroyed, any access to it (whether read or write) will crash your program with no mercy

API

destroyKey(secureBuf)

secureBuf must be a Secure Buffer created with sodium-native@2.4 or greater.

Destroying the secureBuf will safely wipe the key from memory and mark it for noaccess, to prevent any accidental misuse.

Note that the secureBuf looks like a normal Buffer, but has some extra properties. You can read more about Secure Buffers on secure-key-management Be wary about using any of the default Buffer operations on this Secure Buffer.

Install

npm install secure-destroy-key

License

ISC

Current Tags

  • 1.0.1                                ...           latest (3 years ago)

2 Versions

  • 1.0.1                                ...           3 years ago
  • 1.0.0                                ...           3 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 1
Last Day 0
Last Week 1
Last Month 1
Dependencies (3)
Dev Dependencies (1)

Copyright 2014 - 2017 © taobao.org |