OJS Password Generator

Generate OJS (Open Journal Systems) compatible password hashes

Generate Password Hash

Enter the plain text password you want to hash

How to Use

  1. Enter your desired password in the input field
  2. Click "Generate OJS Hash" to create the hash and salt
  3. Copy both the hash and salt values
  4. Update the OJS database with these values

Database Update Query

For OJS 2.x and 3.x, update the users table:

UPDATE users
SET password = 'YOUR_HASH_HERE',
    salt = 'YOUR_SALT_HERE'
WHERE username = 'admin';

Important Notes:

  • This tool generates SHA1 hashes compatible with OJS 2.x and 3.x
  • Both hash and salt must be stored in the database
  • Each generation creates a unique salt and hash
  • Always backup your database before making direct changes
  • This is useful when you're locked out of OJS admin