<<(str) Instance Public methods Alias for: update
Digest::SHA2.new(bitlen = 256) â digest_obj Class Public methods Creates a new SHA2 hash object with a given bit length. Valid bit lengths are 256, 384 and 512.
digest_obj.update(string) â digest_obj Instance Public methods Updates the digest using a given string and returns self. The update() method and the left-shift operator are overridden by each implementation subclass. (One should be an alias for the other)
digest_obj.to_s â string Instance Public methods Returns digest_obj.hexdigest().
digest_obj.size â integer Instance Public methods Returns digest_obj.digest_length().
digest_obj.reset â digest_obj Instance Public methods Resets the digest to the initial state and returns self. This method is overridden by each implementation subclass.
digest_obj.new â another_digest_obj Instance Public methods Returns a new, initialized copy of the digest object. Equivalent to digest_obj.clone().reset().
digest_obj.length â integer Instance Public methods Returns digest_obj.digest_length().
digest_obj.inspect â string Instance Public methods Creates a printable version of the digest object.
digest_obj.hexdigest! â string Instance Public methods Returns the resulting hash value in a hex-encoded form and resets the digest to the initial state.
Page 2159 of 2275