Decrypt string with openssl which is encrypted using pbkdf2 on RHEL 7

Solution Verified - Updated -

Issue

  • While trying to decrypt strings encrypted using -pbkdf2 in RHEL 7 it gives an error as below.
# echo "U2FsdGVkX1/UIcRqVzqOlNlrOW0K9qsCRwZy31R/kDo=" | openssl base64 -d|openssl enc -d -aes-256-cbc
enter aes-256-cbc decryption password:
bad decrypt
140541900756896:error:06065064:digital envelope routines:EVP_DecryptFinal_ex:bad decrypt:evp_enc.c:596:

Environment

  • Red Hat Enterprise Linux (RHEL) 7
  • openssl

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content