1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/ext/digest/digest.txt.jp

112 lines
2.5 KiB
Text
Raw Normal View History

.\" digest.txt.jp - -*- Indented-Text -*- created at: Fri May 25 08:22:19 JST 2001
$RoughId: digest.txt.jp,v 1.8 2001/07/13 15:38:27 knu Exp $
$Id$
** MD5(<28><><EFBFBD>饹)
RFC1321<EFBFBD>˵<EFBFBD><EFBFBD>Ҥ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ƥ<EFBFBD><EFBFBD><EFBFBD>RSA Data Security, Inc. <20><> MD5 Message-Digest
Algorithm<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
Superclass: Digest::Base
require 'digest/md5'
** SHA1(<28><><EFBFBD>饹)
FIPS PUB 180-1<>˵<EFBFBD><CBB5>Ҥ<EFBFBD><D2A4><EFBFBD><EFBFBD>Ƥ<EFBFBD><C6A4><EFBFBD>NIST (the US' National Institute of
Standards and Technology) <20><> SHA-1 Secure Hash Algorithm<68><6D><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><E9A5B9>
Superclass: Digest::Base
require 'digest/sha1'
** SHA256(<28><><EFBFBD>饹)
** SHA384(<28><><EFBFBD>饹)
** SHA512(<28><><EFBFBD>饹)
FIPS PUB 180-2<>˵<EFBFBD><CBB5>Ҥ<EFBFBD><D2A4><EFBFBD><EFBFBD>Ƥ<EFBFBD><C6A4><EFBFBD>NIST (the US' National Institute of
Standards and Technology) <20><> SHA-256/384/512 Secure Hash Algorithm<68><6D>
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
Superclass: Digest::Base
require 'digest/sha2'
** RMD160(<28><><EFBFBD>饹)
Hans Dobbertin, Antoon Bosselaers, Bart Preneel <20>ˤ<EFBFBD><CBA4>ä<EFBFBD><C3A4>߷פ<DFB7><D7A4>줿
RIPEMD-160 <20>ϥå<CFA5><C3A5><EFBFBD><EFBFBD>ؿ<EFBFBD><D8BF><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><E9A5B9>
Superclass: Digest::Base
require 'digest/rmd160'
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Υ<EFBFBD><EFBFBD><EFBFBD>ϰʲ<EFBFBD><EFBFBD>Τ<EFBFBD>ʶ<EFBFBD><EFBFBD>̤Υ<EFBFBD><EFBFBD>󥿡<EFBFBD><EFBFBD>ե<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>󶡤<EFBFBD><EFBFBD>
Class Methods:
new([str])
<20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȥ<EFBFBD><C8A5>֥<EFBFBD><D6A5><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ȥ<EFBFBD><C8A4><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>롥ʸ<EBA1A5><CAB8><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϳ<EFBFBD><CDBF><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
<20>Ȥ<EFBFBD><C8A4><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ɲä<C9B2><C3A4><EFBFBD>(see update)<29><>
digest(str)
Ϳ<><CDBF><EFBFBD><EFBFBD><EFBFBD>줿ʸ<ECA4BF><CAB8><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ф<EFBFBD><D0A4><EFBFBD><EFBFBD>ϥå<CFA5><C3A5><EFBFBD><EFBFBD>ͤ<EFBFBD>ʸ<EFBFBD><CAB8><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>֤<EFBFBD><D6A4><EFBFBD>
new(str).digest <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
hexdigest(str)
Ϳ<><CDBF><EFBFBD><EFBFBD><EFBFBD>줿ʸ<ECA4BF><CAB8><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ф<EFBFBD><D0A4><EFBFBD><EFBFBD>ϥå<CFA5><C3A5><EFBFBD><EFBFBD>ͤ<EFBFBD><CDA4><EFBFBD>ASCII<49><49><EFBFBD><EFBFBD><EFBFBD>ɤ<EFBFBD><C9A4>Ȥä<C8A4>
16<31>ʿ<EFBFBD><CABF><EFBFBD><EFBFBD><EFBFBD><EFBFBD>򼨤<EFBFBD>ʸ<EFBFBD><CAB8><EFBFBD><EFBFBD><EFBFBD>˥<EFBFBD><CBA5>󥳡<EFBFBD><F3A5B3A1>ɤ<EFBFBD><C9A4><EFBFBD><EFBFBD>֤<EFBFBD><D6A4><EFBFBD>
new(str).hexdigest <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
Methods:
clone
<09><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȥ<EFBFBD><C8A5>֥<EFBFBD><D6A5><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ȥ<EFBFBD>ʣ<EFBFBD><CAA3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
digest
<20><><EFBFBD>ޤǤ<DEA4><C7A4>ɲä<C9B2><C3A4><EFBFBD>ʸ<EFBFBD><CAB8><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ф<EFBFBD><D0A4><EFBFBD><EFBFBD>ϥå<CFA5><C3A5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D>40<34>Х<EFBFBD><D0A5><EFBFBD>Ĺ<EFBFBD><C4B9>SHA256<35>Ǥ<EFBFBD>64<36>Х<EFBFBD><D0A5><EFBFBD>Ĺ<EFBFBD><C4B9>SHA384<38>Ǥ<EFBFBD>
96<39>Х<EFBFBD><D0A5><EFBFBD>Ĺ<EFBFBD><C4B9>SHA512<31>Ǥ<EFBFBD>128<32>Х<EFBFBD><D0A5><EFBFBD>Ĺ<EFBFBD>Ȥʤ롣Ruby<62>ǽ񤯤Ȱʲ<C8B0><CAB2><EFBFBD>Ʊ<EFBFBD><C6B1><EFBFBD><EFBFBD>
def hexdigest
digest.unpack("H*")[0]
end
update(str)
<< str
ʸ<><CAB8><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ɲä<C9B2><C3A4>롣ʣ<EBA1A3><CAA3><EFBFBD><EFBFBD>update<74><65><EFBFBD>Ƥ֤<C6A4><D6A4>Ȥ<EFBFBD>ʸ<EFBFBD><CAB8><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϣ<EFBFBD><EFBFBD><EBA4B7>
update<74><65><EFBFBD>Ƥ֤<C6A4><D6A4>Ȥ<EFBFBD><C8A4><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʤ<EFBFBD><CAA4><EFBFBD> m.update(a); m.update(b) <20><>
m.update(a + b) <20>ȡ<EFBFBD> m << a << b <20><> m << a + b <20>Ȥ<EFBFBD><C8A4><EFBFBD><ECA4BE><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
<09>Ǥ<EFBFBD><C7A4>
== md
Ϳ<><CDBF><EFBFBD><EFBFBD><EFBFBD>줿<EFBFBD><ECA4BF><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȥ<EFBFBD><C8A5>֥<EFBFBD><D6A5><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ȥ<EFBFBD><C8A4><EFBFBD><EFBFBD>Ӥ<EFBFBD><D3A4>
== str
Ϳ<><CDBF><EFBFBD><EFBFBD><EFBFBD>줿ʸ<ECA4BF><CAB8><EFBFBD><EFBFBD><EFBFBD><EFBFBD> digest <20>͡<EFBFBD><CDA1><EFBFBD><E2A4B7><EFBFBD><EFBFBD> hexdigest <20>ͤ<EFBFBD><CDA4><EFBFBD><EFBFBD>Ӥ<EFBFBD><D3A4>
<09><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ͤȸ<CDA4><C8B8><EFBFBD><EBA4AB>Ϳ<EFBFBD><CDBF><EFBFBD><EFBFBD><EFBFBD>줿ʸ<ECA4BF><CAB8><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ĺ<EFBFBD><C4B9><EFBFBD>ˤ<EFBFBD><CBA4>äƼ<C3A4>ưȽ<C6B0><C8BD>
<09><><EFBFBD><EFBFBD><EFBFBD>
-------------------------------------------------------
Local variables:
fill-column: 70
end: