chrome-cookies-secure: wrong final block length after ugprading Google Chrome 131.0.6778.6
Is anyone meet following error or only me?
node:internal/crypto/cipher:199
const ret = this[kHandle].final();
^
Error: error:1C80006B:Provider routines::wrong final block length
at Decipheriv.final (node:internal/crypto/cipher:199:29)
at decrypt (/home/oliver/localprojects/read_cookie/node_modules/chrome-cookies-secure/index.js:41:19)
at Statement.<anonymous> (/home/oliver/localprojects/read_cookie/node_modules/chrome-cookies-secure/index.js:416:23) {
library: 'Provider routines',
reason: 'wrong final block length',
code: 'ERR_OSSL_WRONG_FINAL_BLOCK_LENGTH'
}
I would be thankful for any hints to get this fixed
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Reactions: 2
- Comments: 17 (4 by maintainers)
@rubengmurray I created a PR with the fix. Please take a look. #68
fwiw i’m not - it’s working for me now after bumping
hey folks - did some digging and Chrome made a change here: https://chromium-review.googlesource.com/c/chromium/src/+/5792044 that prepends a SHA256 hash of the domain name to the start of the encrypted data. Slicing off 32 chars should be right in most cases i can see, so @borodean that’s why that works.