GeneratorsLesson 43Free preview
Hash Generator
This lesson is part of Web Developer Tools · All levels
Summary
Hash Generator converts the input to a hash value of fixed length through a one-way function. The same input always produces the same hash, but the hash cannot be reversed into the original text. Any slight change in input usually results in a very different hash, so the hash is useful for checking file integrity. For passwords, use special algorithms like bcrypt or Argon2 with salt, not MD5 or SHA-1.
Key points
- The hash function is one-way and produces a fixed output length
- The same input always produces the same hash.
- Small changes in input drastically change hash
- MD5 and SHA-1 are no longer safe for security purposes.
- Passwords should be hashed with bcrypt or argon2 and salt.
Full lesson
Code examples and quizzes
Full lessons, code examples, and quizzes are available to subscribers. 5 questions.