From 44cf56d6e70dbe06a160b004494ba40dd4cfb426 Mon Sep 17 00:00:00 2001 From: matz Date: Thu, 22 Jun 2000 08:29:58 +0000 Subject: 2000-06-22 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@775 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ext/md5/md5.txt | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'ext/md5/md5.txt') diff --git a/ext/md5/md5.txt b/ext/md5/md5.txt index 0eca7c9025..e2b072401b 100644 --- a/ext/md5/md5.txt +++ b/ext/md5/md5.txt @@ -25,6 +25,17 @@ Methods: returns have value of the added strings as a 16 bytes string. + hexdigest + + returns have value of the added strings as an 32 bytes ASCII + string. This method is equal to: + + def hexdigest + ret = '' + digest.each_byte {|i| ret << sprintf('%02x', i) } + ret + end + update(str) Update the MD5 object with the string. Repeated calls are -- cgit v1.2.3