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

Function createCipher

test/parallel/test-crypto-encoding-validation-error.js:11–13  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

9const { createCipheriv, randomBytes } = require('crypto');
10
11const createCipher = () => {
12 return createCipheriv('aes-256-cbc', randomBytes(32), randomBytes(16));
13};
14
15{
16 const cipher = createCipher();

Calls 2

createCipherivFunction · 0.85
randomBytesFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…