End of Life Ruby 3.0 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
Digest::Instance#hexdigest!
digest_obj.hexdigest! → string
ext/digest/digest.c
View on GitHub ↗
static VALUE
rb_digest_instance_hexdigest_bang(VALUE self)
{
VALUE value = rb_funcall(self, id_finish, 0);
rb_funcall(self, id_reset, 0);
return hexencode_str_new(value);
}
Returns the resulting hash value in a hex-encoded form and resets the digest to the initial state.