MD5Stream.st
changeset 12756 1814ef3ccb3d
parent 12751 56b642c5b171
child 13001 787e592f48f6
equal deleted inserted replaced
12755:abeb561f4f70 12756:1814ef3ccb3d
    50 !
    50 !
    51 
    51 
    52 documentation
    52 documentation
    53 "
    53 "
    54     Generate a MD5 hash value as defined in RFC 1321.
    54     Generate a MD5 hash value as defined in RFC 1321.
    55     This may be used as checksum
    55     This may be used as checksum or for generating cryptographic signatures.
    56     or for generating cryptographic signatures.
    56 
       
    57     Note:
       
    58         in August 2004, some researchers have found a way to generate full collisions for MD5. 
       
    59         Therefore, for new applications, it may be wise to choose another hash function for security stuff. 
    57 
    60 
    58     performance: roughly
    61     performance: roughly
    59 			80000 Kb/s on a 2Ghz Duo
    62                         80000 Kb/s on a 2Ghz Duo
    60 			27200 Kb/s on a 1.2Ghz Athlon
    63                         27200 Kb/s on a 1.2Ghz Athlon
    61 			12600 Kb/s on a 400Mhz PIII
    64                         12600 Kb/s on a 400Mhz PIII
    62 			 9150 Kb/s on a 300Mhz Sparc.
    65                          9150 Kb/s on a 300Mhz Sparc.
       
    66         performance is almost completely limited by the speed of the md5-routine, which is the reference
       
    67         implementation in C from md5lib.
       
    68 
    63     [author:]
    69     [author:]
    64 	Stefan Vogel
    70         Stefan Vogel
    65 
    71 
    66     [see also:]
    72     [see also:]
    67 	SHA1Stream
    73         SHA1Stream
    68 
    74 
    69     [class variables:]
    75     [class variables:]
    70 	HashSize        size of returned hash value
    76         HashSize        size of returned hash value
    71 	ContextSize     (implementation) size of hash context
    77         ContextSize     (implementation) size of hash context
    72 
    78 
    73     [instance variables:]
    79     [instance variables:]
    74 	hashContext     (implementation)
    80         hashContext     (implementation)
    75 			internal buffer for computation of the hash value
    81                         internal buffer for computation of the hash value
    76 "
    82 "
    77 !
    83 !
    78 
    84 
    79 examples
    85 examples
    80 "
    86 "
   444 ! !
   450 ! !
   445 
   451 
   446 !MD5Stream class methodsFor:'documentation'!
   452 !MD5Stream class methodsFor:'documentation'!
   447 
   453 
   448 version
   454 version
   449     ^ '$Header: /cvs/stx/stx/libbasic/MD5Stream.st,v 1.12 2010-03-04 14:33:35 cg Exp $'
   455     ^ '$Header: /cvs/stx/stx/libbasic/MD5Stream.st,v 1.13 2010-03-04 20:55:03 cg Exp $'
   450 !
   456 !
   451 
   457 
   452 version_CVS
   458 version_CVS
   453     ^ '$Header: /cvs/stx/stx/libbasic/MD5Stream.st,v 1.12 2010-03-04 14:33:35 cg Exp $'
   459     ^ '$Header: /cvs/stx/stx/libbasic/MD5Stream.st,v 1.13 2010-03-04 20:55:03 cg Exp $'
   454 ! !
   460 ! !
   455 
   461 
   456 MD5Stream initialize!
   462 MD5Stream initialize!