-
Notifications
You must be signed in to change notification settings - Fork 29.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cipher job failed #37370
Comments
Could be a couple of issues. We'd need a test case that reproduces that issue in order to chase it down. |
Hi there! We're encrypting and decrypting buffers using AES-GCM with a 256-bit key for our Websocket MMO. So it's safe to say that there's nothing interesting going on here, but just a lot of data being processed. It also doesn't seem to happen that often, but when it does happen it seems to fail multiple times more frequently. I started to notice it when half of the clients suddenly got disconnected and I looked at the logs and found a ton of these I hope this can be looked into further with my information as it's quite high priority for our setup. Edit: This error happens when we decrypt data. I've made some edits to include a stack trace, which I'll provide here as soon as it happens again. |
@jasnell I tried catching the stack of this error, but sadly it's just |
I'll be able to take a look on Monday |
Thank you for your swift response. I'll be awaiting results 🙂 |
@jasnell Any info on this? We're still experiencing the problem. |
Did you ever figure this out? This is the only place on the internet where I've seen the same error, don't know how to get around it. |
For anyone finding their way here: I decided to follow the example here and it worked. I don't know why my example didn't, but whatevs: https://gist.github.com/chrisveness/43bcda93af9f646d083fad678071b90a |
It working for me in nodejs v17.1.0 Here is my partial code: const fs = require('fs');
const path = require('path');
const {Blob} = require('buffer')
const crypto = require('crypto').webcrypto
async function decryptFile(filePath,ivdata, exportedkey) {
let file = fs.readFileSync(filePath);
let encblob = new Blob([file]);
let decBlob = await decryptblob(encblob, ivdata, exportedkey);
const buffer = Buffer.from( await decBlob.arrayBuffer() );
fs.writeFileSync(filePath, buffer);
} |
Node: 15.8.0
System: Ubuntu
We've been using the experimental WebCrypto module to encrypt and decrypt data in Nodejs. Sometimes, we see
Cipher job failed
in the logs with no other information given. Because of that, I sadly don't have anything else to share. I'm hoping someone could look into it.Much appreciated!
The text was updated successfully, but these errors were encountered: