Class: Digest::RMD160
- Defined in:
- rmd160/rmd160init.c,
rmd160/rmd160init.c
Overview
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..."
Method Summary
Methods inherited from Base
#<<, #block_length, #digest_length, #initialize_copy, #reset, #update
Methods inherited from Class
base64digest, bubblebabble, digest, file, hexdigest, #initialize
Methods included from Instance
#<<, #==, #base64digest, #base64digest!, #block_length, #bubblebabble, #digest, #digest!, #digest_length, #file, #hexdigest, #hexdigest!, #inspect, #length, #new, #reset, #size, #to_s, #update
Constructor Details
This class inherits a constructor from Digest::Class