MCPcopy Index your code
hub / github.com/nodejs/node / decrypt

Function decrypt

test/parallel/test-crypto-padding-aes256.js:43–47  ·  view source on GitHub ↗
(val, pad)

Source from the content-addressed store, hash-verified

41}
42
43function decrypt(val, pad) {
44 const c = crypto.createDecipheriv('aes256', key, iv);
45 c.setAutoPadding(pad);
46 return c.update(val, 'latin1', 'utf8') + c.final('utf8');
47}
48
49// echo 0123456789abcdef0123456789abcdef \
50// | openssl enc -e -aes256 -nopad -K <key> -iv <iv> \

Callers 1

Calls 2

updateMethod · 0.65
finalMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…