Skip to content

class OpenSSL::MD5
inherits Reference

Binds the OpenSSL MD5 hash functions.

Warning: MD5 is no longer a cryptographically secure hash, and should not be used in security-related components, like password hashing. For passwords, see Crypto::Bcrypt::Password. For a generic cryptographic hash, use SHA-256 via OpenSSL::Digest.new("SHA256").

Class methods

.hash(data : Pointer(UInt8), bytesize : Int) : StaticArray(UInt8, 16)

View source

.hash(data : String) : StaticArray(UInt8, 16)

View source