W3cubDocs

/Crystal

module OpenSSL::DigestBase

Direct including types

Defined in:

openssl/digest/digest_base.cr

Instance Method Summary

Instance Method Detail

def <<(data) : selfSource

Reads the io's data and updates the digest with it.

def base64digest : StringSource

Returns a base64-encoded digest.

DEPRECATED Use Base64.strict_encode(final) instead.

def file(file_name : Path | String) : DigestSource

Reads the file's content and updates the digest with it.

def to_s(io : IO) : NilSource

DEPRECATED Use io << final.hexstring instead.

def update(io : IO) : selfSource

Reads the io's data and updates the digest with it.

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