Configure bcrypt password hashing on Red Hat Enterprise Linux 8.10

Solution Verified - Updated -

Issue

  • When configuring bcrypt password hashing with ENCRYPT_METHOD BCRYPT in /etc/login.defs, the following error may be reported in the /var/log/secure file:
unrecognized ENCRYPT_METHOD value [BCRYPT]

When using commands such as chpasswd or useradd -p while ENCRYPT_METHOD is set to this unsupported value, the following error may be reported:

Invalid ENCRYPT_METHOD value: 'BCRYPT'.
Defaulting to DES.

Environment

  • Red Hat Enterprise Linux (RHEL) 8.10
  • Pluggable Authentication Modules (PAM)

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