Check if a Buffer is a sodium-native Secure Buffer
var isSecureBuffer = require('is-secure-buffer')
var sodium = require('sodium-native')
isSecureBuffer(Buffer.alloc(1)) // => false
isSecureBuffer(sodium.sodium_malloc(1)) // => true
Check if sbuf
is a sodium-native
Secure Buffer. This check only works with [email protected]
or greater.
npm install is-secure-buffer