How to Convert Passwords to Hashes in iDempiere

The Convert Passwords to Hashes process in iDempiere converts plain text or encrypted user passwords into one-way salted hashes. This ensures stored passwords cannot be recovered, protecting transaction and customer data.

Business Rules

  • Passwords already hashed cannot be re-hashed; the process blocks if hashing is already enabled.
  • Only user records with a password and no salt value are updated by the process.
  • Password Hash Algorithm is a mandatory field before the process can run.
  • Only supported algorithms — Argon2, PBKDF2, SHA-512 — can be selected.
  • Encrypted passwords remain encrypted after the hash is applied on top.

Process Flow

TenthPlanet iDempiere ConvertPasswordToHash

Prerequisites

  • System Administrator role access to the client.
  • Existing AD_User records with passwords already configured.
  • Full database backup completed before running the process.
  • Approved password hash algorithm identified (Argon2, PBKDF2, or SHA-512).

Navigation

Menu → General Rules → Security → Convert Passwords to Hashes

Configuration Steps

Step 1: Select Password Hash Algorithm

Open the Password Hash Algorithm field and choose Argon2, PBKDF2, or SHA-512 based on your organization’s security policy.

FieldSample ValueDescription
Password Hash AlgorithmSHA-512Algorithm used to hash existing user passwords
TenthPlanet iDempiere GeneralRules ConvertPasswordHashes 1
TenthPlanet iDempiere GeneralRules ConvertPasswordHashes 2

Step 2: Run the Process

Click OK to execute the process. Confirm the dialog to begin converting eligible user passwords to the selected hash format.

Step 3: Verify Migration Results

Review the returned message showing the count of updated users. Investigate a zero-count result or any error before treating staff accounts as secured.

Common Issues and Resolutions

IssueCauseResolution
Process fails to startPassword Hash Algorithm field left blankSelect a valid algorithm before clicking OK
“Unsupported hash algorithm” errorInvalid or unsupported algorithm value usedChoose only Argon2, PBKDF2, or SHA-512 from the list
Zero users updatedAll users already have a Salt value setConfirm via AD_User; re-running is not required

Next Steps

  • Configure the User (AD_User) window for retail store staff accounts.
  • Review Role and Client security settings used by POS terminals.
  • Set up System Configurator entries to enforce password policy.
  • Audit user login history for suspicious activity after migration.

Note: Run this process only once per client. Re-running after passwords are already hashed will raise an error by design.