MCPcopy Create free account
hub / github.com/Cv-Keep/cvkeep-backend / getKey

Function getKey

functions/encryption.js:16–18  ·  view source on GitHub ↗
(salt)

Source from the content-addressed store, hash-verified

14 }
15
16 function getKey(salt) {
17 return crypto.pbkdf2Sync(secret, salt, 100000, 32, 'sha512');
18 }
19
20 this.encrypt = function encrypt(value) {
21 if (value == null) {

Callers 1

CryptrFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected