UNPKG

secure-peer

Version:

peer-to-peer encrypted streams using public key cryptography and signing

9 lines (7 loc) 197 B
var crypto = require('crypto'); module.exports = function verify (key, msg, hash) { return crypto.createVerify('RSA-SHA256') .update(msg) .verify(key, hash, 'base64') ; };