W3cubDocs

/Crystal 0.31

class OpenSSL::MD5

Overview

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").

Defined in:

openssl/md5.cr

Class Method Summary

Class Method Detail

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

def self.hash(data : String) : StaticArray(UInt8, 16)Source

© 2012–2019 Manas Technology Solutions.
Licensed under the Apache License, Version 2.0.
https://crystal-lang.org/api/0.31.1/OpenSSL/MD5.html