Forum Discussion

AlPatel's avatar
AlPatel
Bronze II
20 days ago
Solved

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 decrypti...
  • AlPatel's avatar
    6 days ago

    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.