Trusted answers to developer questions

What is password cracking?

Get the Learn to Code Starter Pack

Break into tech with the logic & computer science skills you’d learn in a bootcamp or university — at a fraction of the cost. Educative's hand-on curriculum is perfect for new learners hoping to launch a career.

Password cracking is the process of figuring out a password. Passwords are stored in, or transmitted as,​ an encrypted bit string which is generated using a cryptographic hash function. This function takes the password as the input and outputs its encrypted form. Since the hash function is a one-way function, it is practically impossible to generate the password from the encrypted bit string.

svg viewer

Brute force

A common technique used to crack passwords is the brute-force approach; i.e., inputting every possible combination of characters in the hash function and matching the output with the encrypted bit string. Although this seems very time consuming, parallel programming has made it easier to crack passwords using this approach.

Dictionary attack

A dictionary attack is also a form of the brute force approach, but instead of using every possible word to guess the password, it only uses common actual words. Dictionary attacks are likely to succeed because most people choose words which are part of a language, with slight changes (e.g., adding a number at the end, replacing a letter with a number, etc.)

RELATED TAGS

security
hacking
encryption
cryptography
hash
Copyright ©2024 Educative, Inc. All rights reserved
Did you find this helpful?