openssl "hex string is too short, padding with zero bytes to length"

Solution Unverified - Updated -

Issue

  • When encryption with openssl, hex string is too short, padding with zero bytes to length warning displayed. What does it mean?

    # echo -n 'abcde' | openssl enc -e -aes256 -base64 -pbkdf2 -iter 100000 -S 1234 -salt -k VERYLONGPASSWORD
    hex string is too short, padding with zero bytes to length
    (omit)
    

Environment

  • Red Hat Enterprise Linux 8
  • 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