Generate MD5, SHA-1, SHA-256 and SHA-512 hashes.
A hash function turns any input into a fixed-length string. The same input always gives the same output, but even a one-letter change produces a completely different result, and you cannot work backwards from the hash to the original.
Plain fast hashes are the wrong tool for passwords. Systems should use a slow, salted algorithm such as bcrypt, scrypt or Argon2. Fast hashes can be guessed billions of times per second.
No. Encryption can be reversed with a key. A hash is one-way by design.