Hash a text string using the function you need : MD5, SHA1, SHA256, SHA224, SHA512, SHA384, SHA3 or RIPEMD160
A hash function takes any input and produces a fixed-length output (digest). It is one-way — you cannot reverse a hash to get the original input. It is used in passwords, file integrity checks, and digital signatures.
For security-sensitive use cases, use SHA-256 or SHA-512. MD5 and SHA-1 are considered cryptographically broken and should only be used for non-security purposes like checksums.
MD5 has known collision vulnerabilities and should not be used for security purposes — it is only suitable for non-security tasks like checksums. SHA256 is the current secure choice for digital signatures and certificates. For password storage, use bcrypt, scrypt, or Argon2 instead of any SHA algorithm.
MD5 and SHA algorithms are designed to be fast, which is exactly the wrong property for password storage. GPUs can compute billions of hashes per second, and combined with precomputed rainbow tables, simple passwords can be cracked in seconds. For password storage, use purpose-built slow hash algorithms: bcrypt (most widely used), scrypt (memory-hard), or Argon2id (recommended — winner of the Password Hashing Competition).