Forum Discussion
Modern Encryption Issue
I'm on the last training under Modern Encryption training.
I'm getting this error:
─$ openssl enc -des-ede3-cbc -d -pbkdf2 -nosalt -in encrypted_file_3DES.enc -out DES3
enter des-ede3-cbc decryption password:
bad decrypt
139655774025024:error:06065064:digital envelope routines:EVP_DecryptFinal_ex:bad decrypt:../crypto/evp/evp_enc.c:610:
The key is in text file from previous steps. I'm on step #7.
I used the same syntax for decryption as earlier in this series. I tried various things, but still getting this error. I added the -a switch as well.
Still getting this error:
└─$ openssl enc -d -des-ede3-cbc -pbkdf2 -nosalt -in encrypted_file_3DES.enc -out encrypted_file_3DES.txt
enter des-ede3-cbc decryption password:
bad decrypt
139631885493568:error:06065064:digital envelope routines:EVP_DecryptFinal_ex:bad decrypt:../crypto/evp/evp_enc.c:610:
Even with manually entering the password or Copy and Paste it from the token1.txt file.
token1.txt file:
The (encoded) key you need to decrypt encrypted_file_3DES is as follows: <Key>
I shouldn't get a digital envelope error. It looks like line 610 in the C script evp_enc.c is where the error is at.
11 Replies
- SamDickison
Community Manager
Hey AlPatel I'll get our support team to give you some help...
- ChrisKershaw
Community Support
Hey AlPatel
I'm Chris, I work in the Customer Support Team at Immersive, lovely to connect with you 👋🏻.
Can you confirm which lab it is you're having this issue on? You mentioned it's one of the labs in the "Modern Encryption" collection, can you let me know which specific lab it is and I'll be happy to review this for you? - AlPatelBronze II
Its the last one: Modern Encryption: Demonstrate Your Skills
- ChrisKershaw
Community Support
Hey AlPatel,
Thank you for getting back to me. With any 'demonstrate' style labs, unfortunately we can't provide any specific guidance to help as the labs are designed to test your learning. The only thing I can do is to ask our Cyber Team to confirm if the machine in the lab is working correctly. Is this something you would like me to do for you?
- AlPatelBronze II
Yes. Please confirm this.
- ChrisKershaw
Community Support
Hey AlPatel sorry for the delay in responding to you.
I've just reached out to our Cyber Team to ask if someone can review this for you to help out. Hopefully, someone will reach back to you shortly.- ChrisKershaw
Community Support
Hey AlPatel
Im sorry for the delay in getting back to you.
Our Cyber Team reached back to me, to say that you're putting in the wrong password, so it might be worth just ensuring your caps lock is turned off, and re-entering the password manually.
They did also confirm that the lab is working as expected.
- AlPatelBronze II
Still getting this error:
└─$ openssl enc -d -des-ede3-cbc -pbkdf2 -nosalt -in encrypted_file_3DES.enc -out encrypted_file_3DES.txt
enter des-ede3-cbc decryption password:
bad decrypt
139631885493568:error:06065064:digital envelope routines:EVP_DecryptFinal_ex:bad decrypt:../crypto/evp/evp_enc.c:610:
Even with manually entering the password or Copy and Paste it from the token1.txt file.
token1.txt file:
The (encoded) key you need to decrypt encrypted_file_3DES is as follows: <Key>
I shouldn't get a digital envelope error. It looks like line 610 in the C script evp_enc.c is where the error is at.
- ChrisKershaw
Community Support
Hey AlPatel
I'm sorry you're continuing to have issues with the lab. Unfortunately, again as this is a demonstrate lab we're limited to the information we can share and provide to help you. I would see if another platform user can comment in the community thread to assist you further here. Otherwise, we risk providing the solution to the task.I hope you understand and I'm sorry I can't offer any further help here.
- AlPatelBronze II
I had to decode it outside of the openssl command. It wouldn't do it in one command line.