mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* ext/md5/md5.txt: make wording fixes, and mention the newly added
method: "<<". * ext/md5/md5.txt.jp: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1403 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
b7d38617e3
commit
4202ff1a9f
3 changed files with 24 additions and 12 deletions
|
@ -1,3 +1,10 @@
|
|||
Thu May 17 06:31:30 2001 Akinori MUSHA <knu@iDaemons.org>
|
||||
|
||||
* ext/md5/md5.txt: make wording fixes, and mention the newly added
|
||||
method: "<<".
|
||||
|
||||
* ext/md5/md5.txt.jp: ditto.
|
||||
|
||||
Wed May 16 18:05:52 2001 Akinori MUSHA <knu@iDaemons.org>
|
||||
|
||||
* ext/md5/md5init.c: add an instance method "<<" as an alias for
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
** MD5(クラス)
|
||||
|
||||
RFC1321に記述されているRSA Data Security, Inc. の MD5 Message-Digest
|
||||
Algorithmを実装するクラス.
|
||||
Algorithmを実装するクラス。
|
||||
|
||||
SuperClass: Object
|
||||
|
||||
|
@ -13,18 +13,18 @@ Class Methods:
|
|||
md5([str])
|
||||
|
||||
新しいMD5オブジェクトを生成する.文字列引数が与えられるとそれ
|
||||
を追加する(see update).
|
||||
を追加する(see update)。
|
||||
|
||||
Methods:
|
||||
|
||||
clone
|
||||
|
||||
MD5オブジェクトの複製を作る
|
||||
MD5オブジェクトの複製を作る。
|
||||
|
||||
digest
|
||||
|
||||
今までに追加した文字列に対するハッシュ値を16バイト長の文字列で
|
||||
返す.
|
||||
返す。
|
||||
|
||||
hexdigest
|
||||
|
||||
|
@ -39,9 +39,12 @@ Methods:
|
|||
end
|
||||
|
||||
update(str)
|
||||
<< str
|
||||
|
||||
MD5オブジェクトに文字列を追加する。複数回updateを呼ぶことは文
|
||||
字列を連結してupdateを呼ぶことと等しい.
|
||||
字列を連結してupdateを呼ぶことと等しい。すなわち m.update(a);
|
||||
m.update(b) は m.update(a+b) と、 m << a << b は m << a+b と
|
||||
それぞれ等価である。
|
||||
|
||||
-------------------------------------------------------
|
||||
Local variables:
|
||||
|
|
Loading…
Reference in a new issue