Challenges
bcrypt and MD5 speed
Cryptography
Easy
Password hashing speed
Solves: 24
bcrypt and MD5 speed
Author: CyberSamSU
Points
15
Fast hashes like MD5 or SHA-256 are a very bad choice for storing passwords. The reason is: they are so fast that an attacker can test billions of passwords per second on a GPU.
bcrypt, on the other hand, is made deliberately slow: its "cost" (work factor) parameter makes each hash thousands of times heavier. This is why bcrypt, scrypt, or Argon2 specifically are used for passwords.
Assume that a single GPU operates at the following speeds:
- MD5:
50 000 000 000hashes/second (50 billion), - bcrypt (cost=12):
2 500hashes/second.
How many times slower is bcrypt than MD5 to perform the same work? That is, divide the MD5 speed by the bcrypt speed.
Answer: only the number — in decimal format, without spaces and extra characters (for example 1234).
Theory: learn the topic
To submit a flag, log in.