class

Digest::SHA1

Inherits OpenSSL::Digest / Digest / Reference / Object

Implements the SHA1 digest algorithm.

NOTE: To use SHA1, you must explicitly import it with require "digest/sha1"

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 Digest::SHA256.

Constructors

Instance methods

dup

Returns a shallow copy of this object.

This allocates a new object and copies the contents of self into it.

Source