You are here

Tclmd5 0.4

admin의 아바타
첨부 파일파일 크기
Binary Data Tclmd5-0.4.tar.gz17.46 KB

홈페이지 :

md5 - manipulate md5 message digests


md5 - manipulate md5 message digests

To make type:

      make install

The configure script will deduce $PREFIX from the tcl installation.
The generated Makefile uses the file $PREFIX/lib/ that was left by
the make of tcl for most of its configuration parameters.

The Makefile generates pkgIndex.tcl files that are compatible with
tcl7.6.   If you are using tcl7.5 then you will need to edit 
$PREFIX/lib/pkgIndex.tcl by hand.


      md5 ?-log2base log2base? -string string


      md5 ?-log2base log2base? ?-copychan chanID? -chan chanID

      md5 -init (returns descriptor)
      md5 -update descriptor ?-maxbytes n? ?-copychan chanID? -chan chanID
      md5 ?-log2base log2base? -final descriptor

Switches can be in any order.

Returns a md5 digest in base 2 ** log2base ascii representation.
log2base defaults to 4, i.e. hex representation.

       log2base   length   chars 
         1          128      01            (binary)
         2           64      0..3
         3           43      0...7         (octal)
         4           32      0..9a..f      (hex)
         5           26      0..9a..v      
         6           22      0..9a..zA..Z_, 

(The characters in the digest string have been chosen to be usable in 
filenames so that the md5 command can be used, for example, 
to digest URLs into shorter strings for filenames in a cache.)

In the -string version, returns md5 digest of string.

In the -chan version, returns list of 2 items: length of data
in chanID followed by md5 digest of all data in chanID.  ChanID is
identifier returned from "open" for example.  If -copychan is supplied,
will also copy all data from chanID to copychanID.

In the third form, -init returns a descriptor, -update can be called
any number of times with that descriptor and returns the number of
bytes read, and -final returns the result in the same form as the
standalone -chan.

Written by:  John Ellson (
modified by: Dave Dykstra (

Use at your own risk.  No support.  No copyright.