Using MD5 or SHA1 for passwords or integrity is cryptographically broken.
Use bcrypt or Argon2 for passwords and SHA-256 or stronger for integrity.