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 sodium-native@2.1.0
or greater.
npm install is-secure-buffer