We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Whats the correct secret length to use?
const mtOptions = { uri: uri, encrypt: true, secret: ... }
RangeError: Invalid key length ... ) { code: 'ERR_CRYPTO_INVALID_KEYLEN' }
The text was updated successfully, but these errors were encountered:
Hi @ivanbacher and thanks for your question, my side I'm using MT_SECRET: size 32 I'll dig that ant improve doc/feedback 👍
EDIT: used by crypto.createCipheriv (secretKey) --> nodejs doc key
secretKey
key
And as the algorithm used is aes-256-ctrthen the key must be 32 bytes length
aes-256-ctr
Sorry, something went wrong.
Fix #92 - add encrypt secret key length
2d4c7ca
5e133b9
boly38
Successfully merging a pull request may close this issue.
Whats the correct secret length to use?
The text was updated successfully, but these errors were encountered: