Module: MD5Gen

Defined in:
lib/md5_gen.rb

Overview

Provides md5 compute function that either uses native extention or Ruby digest lib.

Class Method Summary collapse

Class Method Details

.compute(body) ⇒ String

Convert body string to MD5 hash.

Parameters:

  • body (String)

    the body to be hashed.

Returns:

  • (String)

    the hash of the body.



38
39
40
# File 'lib/md5_gen.rb', line 38

def self.compute body
  underlying_compute_method(body)
end