Re: md5 version 2.0.4 to 2.0.5



On Jan 30, 3:59 pm, Eric Hassold <hass...@xxxxxxxxxxx> wrote:
Hi,

Clint wrote :



All,

I have noticed that since md5 has went to version 2.0.5 that I have
seen different results from previous versions of md5. I have older
apps that use md5 version 2.0.4 and if I upgrade md5 to 2.0.5., the
values return from the ::md5::md5 -hex command are different. For
example:

md5 v. 2.0.4:
-> ::md5::md5 -hex whatupwitdat
39054E44B13795EBC148CF17FE5ED22D

md5 v. 2.0.5
-> ::md5::md5 -hex whatupwitdat
2C9DEC74AE2AA10452D8820C117C6A4D

Anyone know if there is some new switch in version 2.0.5 for backward
compatible, or do I have to go back to all my old apps and rework if I
upgrade to version 2.0.5?

thanks,

md5sum is strictly defined, and must not change, neither from one
version of md5 package to another, nor from tcllib's md5 implementation
to other implementation. Correct digest for "whatupwitdat" is "3905...",
so what you get with 2.0.5 is broken. However, using md5 2.0.5 from
tcllib 1.10, I can't reproduce the problem you report, and get correct
answer. So it looks like your md5 distrib is broken. Which platform are
you running? Also, check if your md5 package falls back to one of the
accelerator (critcl, cryptkit or trf) instead of the pure Tcl
implementation.

Eric

The 2.0.4 version I am using is on a Linux box using tcl 8.4.12. The
2.0.5 version I am using is on a Mac (Tiger) using tcl 8.4.16.

Thanks,
.



Relevant Pages

  • Re: Native md5 and base64 functions ?
    ... Thats why the other scripting languages are using extensions. ... Try to do a TCL md5 over 2000 files that have 200 MB and you see the ... Install ActiveTcl, start tclsh, do [package require md5] ...
    (comp.lang.tcl)
  • Re: Native md5 and base64 functions ?
    ... Thats why the other scripting languages are using extensions. ... Try to do a TCL md5 over 2000 files that have 200 MB and you see the ... What's insane is choosing to use Tcl for this specific task. ... The md5 package wasn't designed for such heavy lifting. ...
    (comp.lang.tcl)
  • Re: md5::md5 returns unexpected value,am I using it correctly?
    ... # The next line is executed by /bin/sh, but not tcl \ ... package require md5 ... proc print-md5 { ...
    (comp.lang.tcl)
  • Re: hashing algorithms?
    ... > extension which provides an Interface to hashing algogithms like crypt, ... md5 is in the standard Tcl library tcllib. ...
    (comp.lang.tcl)
  • Re: computer md5 checksum
    ... Cameron Laird wrote: ... package require md5 2.0.5? ... The requirement Tcl 8.2 is current. ...
    (comp.lang.tcl)