The Digest module contains implementations of hashing algorithms like Digest::MD5 or Digest::SHA1.
Digest::MD5
Digest::SHA1