So, I found out on SO that you\'re supposed to hash the password together with a \"salt\". (The articles can be found here and here.)
Here\'s the code:
A salt is a random number of a fixed length. This salt must be different for each stored entry. It must be stored as clear text next to the hashed password.
From
https://www.owasp.org/index.php/Hashing_Java#Why_add_salt_.3F