-
Notifications
You must be signed in to change notification settings - Fork 172
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
Error: error:06065064:digital envelope routines:EVP_DecryptFinal_ex:bad decrypt #48
Comments
me too |
roc-Type: 4,ENCRYPTED |
Looks like the nodejs crypto module can't decrypt your SSH key with the passphrase provided. This might be hard to debug -- what version of nodejs are you running? |
I sovled this by input correct passphase….which I just input Enter before. The error info is just a little misleading. |
@fire717 Still not work, I have not set any passphase before, just Enter ... Enter. |
so? how to get passphase? I have the same problem! |
It's the passphrase for your encrypted private key. |
Checked those links, error info was changed, but still not work. |
From: nodejs/node#2794 (comment)
|
@tmcc-h interesting. Thank you. Would you be able to open a pull request to incorporate this fix? |
Please check if your ssh key has a password |
@tmcc-h, I was not aware any platforms used something other than pkcs padding. OpenSSH uses pkcs padding for encrypting private keys. Did that fix work for you? If so, what SSH implementation did you use to generate/encrypt your key? |
I decrypted my key by specifying no passphrase for |
I tried @skorokithakis suggestion, but then get (just pressing when asked for keyphrase):
I believe I originally created my key with:
|
@HaleTom the bech32 error refers to the Handshake address you need to pass in to hs-airdrop, telling the Blockchain where to send your coins. Were you able to generate a HNS address? |
Thanks had a same error adding |
@ntokozo-shagala were exactly did you add that line? Could you post a diff here, or open a pull request? thank you! |
I had this issue with the latest version of NodeJS when running the command "ng-serve", I uninstalled that version and installed the "recommended for most users version" instead which fixed the error for me. |
I had this issue with v17.0.0, I switched to v14.18.1 and it disappeared. Thanks @DavidMendiluce |
But is there any way to solve it in node v17.0.1? |
@MrRed369 https://stackoverflow.com/a/69665354/6282094
|
i was thinking that maybe that was the issue of passkey but no ,,,,,,,,,,,,,,,,,, that was never a issue,,,,,,,,,,,,,,,---------------- var iv = crypto.randomBytes(16) I create iv Randomly every time so i have to store it in a var that hold it until i proccess this further;; Buffer.from(YOUR BINNARY IV DATA.toString("hex"), "hex") |
Thanks for this!
How much in USD terms is the value of the airdrop?
…On 1 March 2022 22:51:29 erorr-404-Aditya ***@***.***> wrote:
i was thinking that maybe that was the issue of passkey but no
,,,,,,,,,,,,,,,,,, that was never a issue,,,,,,,,,,,,,,,----------------
The Real Issue Was The IVvar iv = crypto.randomBytes(16)
I create iv Randomly every time so i have to store it in a var that hold it
until i proccess this further;;
and after iv sets perfect i used Buffer From That IV AND WOOOW;;;;; I JUST
GOT SUCCESSBuffer.from(YOUR BINNARY IV DATA.toString("hex"), "hex")
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
mac os, when I run
./bin/hs-airdrop ...
got this:
Error: error:06065064:digital envelope routines:EVP_DecryptFinal_ex:bad decrypt
at Decipheriv.final (internal/crypto/cipher.js:172:29)
at CipherBase.final (/Users/fire/Downloads/hs-airdrop/node_modules/bcrypto/lib/native/cipher.js:59:21)
at Decipher.final (/Users/fire/Downloads/hs-airdrop/node_modules/bcrypto/lib/native/cipher.js:114:21)
at Object.decrypt (/Users/fire/Downloads/hs-airdrop/node_modules/bcrypto/lib/native/cipher.js:187:9)
at Object.decrypt (/Users/fire/Downloads/hs-airdrop/node_modules/bcrypto/lib/encoding/pemcrypt.js:68:23)
at SSHPrivateKey.fromString (/Users/fire/Downloads/hs-airdrop/node_modules/bcrypto/lib/ssh.js:644:16)
at Function.fromString (/Users/fire/Downloads/hs-airdrop/node_modules/bufio/lib/struct.js:155:23)
at readKey (/Users/fire/Downloads/hs-airdrop/bin/hs-airdrop:536:33)
at processTicksAndRejections (internal/process/task_queues.js:97:5)
at async parseArgs (/Users/fire/Downloads/hs-airdrop/bin/hs-airdrop:714:21)
The text was updated successfully, but these errors were encountered: