View previous topic :: View next topic |
Author |
Message |
humbletech99 Veteran
Joined: 26 May 2005 Posts: 1229 Location: London
|
Posted: Mon May 08, 2006 12:31 am Post subject: Is there a Tiger Tree Hash program in Gentoo? |
|
|
Is there a Tiger Tree Hash program in Gentoo, like the md5sum or sha1 programs?
I want it to compare a stack of files I have against the TTH roots of the files shared by other people in DC++ since these files were downloaded a long time ago by an older dc++ client before tth was introduced.
These files are of course all legal and nothing copyrighted....
If there is no program available then I'll have to revisit C, learn it properly and write one myself which could take a bit of time, but I'm positive that I could do this ... (I think C is the best language for this small program - it's the fastest, and is what most system level stuff like core-utils md5sum are written in). _________________ The Human Equation:
value(geeks) > value(mundanes) |
|
Back to top |
|
|
Blood Fluke Apprentice
Joined: 15 Sep 2005 Posts: 224
|
Posted: Mon May 08, 2006 12:39 am Post subject: Re: Is there a Tiger Tree Hash program in Gentoo? |
|
|
humbletech99 wrote: |
If there is no program available then I'll have to revisit C, learn it properly and write one myself which could take a bit of time, but I'm positive that I could do this ... (I think C is the best language for this small program - it's the fastest, and is what most system level stuff like core-utils md5sum are written in). |
There's absolutely no reason to write this program in C. Welcome to 1997: computers are fast. The hashing program I use most often is written in python, possibly the slowest language in use today.
That said, sounds like as good a project to do in C as any. If you want to learn C, well, having an acheivable goal to work towards is a good way to do it. |
|
Back to top |
|
|
humbletech99 Veteran
Joined: 26 May 2005 Posts: 1229 Location: London
|
Posted: Mon May 08, 2006 12:51 am Post subject: |
|
|
what hashing program is that? yes I know python is visibly slow, I've used it at work and at first sight it's disgustingly non-free-form, breaking 30 years of program writing tradition (it's not the only one I know, but vb isn't in question cos it's programming for windows people who can't hack syntax)... but after you get over that it grows on you for simplicity and clear reading.
I take it nobody knows of any program to generate a TTH checksum in Gentoo then? _________________ The Human Equation:
value(geeks) > value(mundanes) |
|
Back to top |
|
|
Blood Fluke Apprentice
Joined: 15 Sep 2005 Posts: 224
|
Posted: Mon May 08, 2006 1:27 am Post subject: |
|
|
humbletech99 wrote: | what hashing program is that? yes I know python is visibly slow, I've used it at work and at first sight it's disgustingly non-free-form, breaking 30 years of program writing tradition (it's not the only one I know, but vb isn't in question cos it's programming for windows people who can't hack syntax)... but after you get over that it grows on you for simplicity and clear reading. |
There's nothing good I can say about python.
The hash script in question is "cfv" -- it handles about ten common hash and checksum algorithms. |
|
Back to top |
|
|
humbletech99 Veteran
Joined: 26 May 2005 Posts: 1229 Location: London
|
Posted: Mon May 08, 2006 7:46 am Post subject: |
|
|
did you import libraries to generate the checksums or did you find out how the algorithms work and write them yourself? _________________ The Human Equation:
value(geeks) > value(mundanes) |
|
Back to top |
|
|
|