Skip to content

emilbayes/is-secure-buffer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

is-secure-buffer

Build Status

Check if a Buffer is a sodium-native Secure Buffer

Usage

var isSecureBuffer = require('is-secure-buffer')
var sodium = require('sodium-native')

isSecureBuffer(Buffer.alloc(1)) // => false
isSecureBuffer(sodium.sodium_malloc(1)) // => true

API

var bool = isSecureBuffer(sbuf)

Check if sbuf is a sodium-native Secure Buffer. This check only works with [email protected] or greater.

Install

npm install is-secure-buffer

License

ISC

About

Check if a Buffer is a sodium-native Secure Buffer

Resources

License

Stars

Watchers

Forks

Packages

No packages published