UNPKG

encrypt-stack

Version:

An encryption driver/stack to create a multi-layer encrypted workflow in Node.

8 lines (7 loc) 176 B
'use strict'; const crypto = require("crypto"); module.exports = (data)=>{ const hash = crypto.createHash("sha512"); hash.update(data); return hash.digest("hex"); };