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.txt16
1 files changed, 9 insertions, 7 deletions
diff --git a/ext/md5/md5.txt b/ext/md5/md5.txt
index e2b072401b..211a5302b5 100644
--- a/ext/md5/md5.txt
+++ b/ext/md5/md5.txt
@@ -12,23 +12,24 @@ Class Methods:
new([str])
md5([str])
- creates a new MD5 object. If a string argument is given, it
+ Creates a new MD5 object. If a string argument is given, it
is added to the object. (see update.)
Methods:
clone
- copies the MD5 object.
+ Copies the MD5 object.
digest
- returns have value of the added strings as a 16 bytes string.
+ Returns the MD5 hash of the added strings as a string of 16
+ bytes.
hexdigest
- returns have value of the added strings as an 32 bytes ASCII
- string. This method is equal to:
+ Returns the MD5 hash of the added strings as a string of 32
+ hexadecimal digits. This method is equal to:
def hexdigest
ret = ''
@@ -37,11 +38,12 @@ Methods:
end
update(str)
+ << str
- Update the MD5 object with the string. Repeated calls are
+ Update the MD5 object with the string str. Repeated calls are
equivalent to a single call with the concatenation of all the
arguments, i.e. m.update(a); m.update(b) is equivalent to
- m.update(a+b).
+ m.update(a+b) and m << a << b is equivalent to m << a+b.
-------------------------------------------------------
Local variables: