A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://docs.ruby-lang.org/en/3.4/Digest/RMD160.html below:

class Digest::RMD160 - Documentation for Ruby 3.4

  1. Digest::
  2. RMD160
class Digest::RMD160

A class for calculating message digests using RIPEMD-160 cryptographic hash function, designed by Hans Dobbertin, Antoon Bosselaers, and Bart Preneel.

RMD160 calculates a digest of 160 bits (20 bytes).

Examples
require 'digest'

# Compute a complete digest
Digest::RMD160.hexdigest 'abc'      #=> "8eb208f7..."

# Compute digest by chunks
rmd160 = Digest::RMD160.new               # =>#<Digest::RMD160>
rmd160.update "ab"
rmd160 << "c"                           # alias for #update
rmd160.hexdigest                        # => "8eb208f7..."

# Use the same object to compute another digest
rmd160.reset
rmd160 << "message"
rmd160.hexdigest                        # => "1dddbe1b..."

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4