Skip to content
TERMICONSULT

Cybersecurity

Your password is your ownership

Your are exposed when they have your key.

5 min read

Your are exposed when they have your key.

When getting in our house, it is important to keep your key private. If this gets into a foreign hand, your private data are exposed to be accessed. The foreigner can use the key to open your house and get control of your properties. To prevent this situation from happening, it is always important to keep your key saved. The same analogy can be applied to accessing private data online. When getting to your private data online, you need to use your private key that only you have access to. Firstly, you have to identify yourself using your username and then give your password to get into your protected area. As in the digital world, data can be extracted using specific tools; it is important for that password to be protected. The keyword used to qualify this is 'hashing'. There are multiple mechanisms that can be used depending on the purposes and the prerequisites, for instance: Argon2id; scrypt; bcrypt; PBKDF2; MD5, SHA-1; SHA-256. In our solution we use the 'bcrypt' hashing approach. Advantages that are important to be mentioned when using hashing:

1. No plaintext passwords — even if there is a database leak, passwords cannot be used directly.

2. Per-user salt — identical passwords used by two administrators produce different hashes; rainbow tables are useless.

3. Adjustable complexity factor — SALT_ROUNDS = 12 can be increased as hardware becomes faster without changing the algorithm.

4. Resistance to timing attacks through the dummy hash comparison for nonexistent accounts.

5. Idempotent account creation (ensureDefaultAdmin) prevents a password changed by an admin from being accidentally overwritten.

Want this analysed for your environment?

Most of what we publish starts as a question from a client. If one of these topics relates to a problem you have, let us know.

Discuss your project

Start here