Closed
Description
openedon Dec 26, 2018
- Output of
node_modules/.bin/electron --version: 4.0.0 - Operating System (Platform and Version): Windows 10
- Output of
node_modules/.bin/electron --versionon last known working Electron version (if applicable): v3.x.x
Expected Behavior
Generally , invoke crypto.createCipheriv () that should return a Cipheriv Object.
Actual behavior
When I call crypto.createCipheriv() , it will response me a error that is unknown cipher .
But If I run this program(test code ) alone by node cmd. (ex. node test.js ) that it work.
So I don't think it is a node10 problem.
To Reproduce
sample code
in main.js
const crypto = require('crypto')
const methodName = 'aes-256-cfb'
const key = 'nMvTdb7VXMPudFWH'
const iv = crypto.randomBytes(16)
const cipher = crypto.createCipheriv(methodName, key, iv)
console.log(cipher)
Response:
in Electron 4 or more newer
unknown cipher
in Electron 3.x , more older or run alone by node cmd
Cipheriv {
_handle: {},
_decoder: null,
_options: undefined,
writable: true,
readable: true }
Activity