W3cubDocs

/Crystal 0.31

class Digest::SHA1

Overview

Implements the SHA1 digest algorithm.

Warning: SHA1 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:

digest/sha1.cr

Constructors

Instance Method Summary

Constructor Detail

def self.newSource

Instance Method Detail

def circular_shift(bits, word)Source

def finalSource

def pad_messageSource

def process_message_blockSource

def resultSource

def update(data)Source

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