MCPcopy Create free account
hub / github.com/cnodejs/nodeclub / decrypt

Function decrypt

controllers/sign.js:345–350  ·  view source on GitHub ↗
(str, secret)

Source from the content-addressed store, hash-verified

343}
344
345function decrypt(str, secret) {
346 var decipher = crypto.createDecipher('aes192', secret);
347 var dec = decipher.update(str, 'hex', 'utf8');
348 dec += decipher.final('utf8');
349 return dec;
350}
351
352function md5(str) {
353 var md5sum = crypto.createHash('md5');

Callers 1

sign.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected