summaryrefslogtreecommitdiff
path: root/ext/md5/md5.txt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/md5/md5.txt')
-rw-r--r--ext/md5/md5.txt11
1 files changed, 11 insertions, 0 deletions
diff --git a/ext/md5/md5.txt b/ext/md5/md5.txt
index 0eca7c90253..e2b072401b0 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