MD5("file1.txt") = ...
SHA256("my first movie.avi") = ...
If so it would be much more clever way to detect filename ending than to trace end of line in order to find last brace. Also text editor with string highlighting would be useful way to read such files.
BTW just now I tried cksum command under FreeBSD 8.0 on my old VM and I must say that it uses another output format:
You still do not catch... (: Any name means any name!
You do not have to trace last brace.
Think for a while and create algorithm like this:
0/ enumerate known checksum signatures for further usage
1/ check first n character for match known signature (md5, sha256 etc)
2/ when you know what siganture is used you can compute length of the checksum
3/ truncate first n characters where n is equal to signature length +2 (for space and opening brace)
4/ truncate last m characters where m is equal to length of checksum + 4 (for two spaces, brace and equal sign)
...and there you have filename. Any filename with braces, quotes, equalsigns, quotation marks etc...
The simpler, the better (:
Some say: keep it simple stupid...
...there would be no room for errors. (:
Nothing else you need to do,
unles you want/need to detect end of line style of file (unix, windows, mac).
About cksum in FreeBSD - try to check for other parameters which can change output.
Notice that FreeBSD is not as precise writing manuals as OpenBSD is.
There may be separate tool to compute new checksums and cksum can be used for compatibility only.
In OpenBSD there is also sum, sha1, md5, etc. as separate tools but their functionality was also build in cksum.
Try them (md5, sha1, sha256) in FreeBSD to see what is the format... (:
I wrote that cksum is/was used for years.
Format which i point out is now increasing...
Last edited by noen on 2011-05-05, 15:13 UTC, edited 1 time in total.
Please, make hash verification summary message more legible.
Putting all in the same line is confusig and harder to read.
Most wanted information (Errors and OK) should be at the end (especially when you can change TC fonts).
Please consider putting the sum in separate lines.
Sorry, but this is only half-measure solution.
It does not change line order and do not imporve much ): (additional spaces do not break line and do not change line order)
(Author of TC changing checksum verifier could also easly change line order)
Please let me know... are the power members involved in implementing TC (not only Author of TC)?
If this is true and ts4242's message means that he will be implementing this change... then I have to thank you ts4242. That is a great news.
I am looking forward to new TC version with all the changes implemented (as optional or not).
noen wrote:Please let me know... are the power members involved in implementing TC (not only Author of TC)?
No, power members are not involved in implementing TC because TC is not open source.
noen wrote:If this is true and ts4242's message means that he will be implementing this change...
Usually when a user likes a suggestion from another user, he say "Support" in hope to encourage TC author to implement it if there are many supporters for that suggestion.
Thanks for explanation (:
Now i have to withdraw my thanks (:
...but it is good to hear you agree (support) with this sugestion.
I hope Author of TC take it into consideration.
ghisler(Author) wrote:SHA256 is already supported, but the format you describe is quite unusual. TC expects files like this:
e5c7e41f033f42cc20c745aa4ebc8bef4f86845e68b75449146b0c5f4a5a37ef *cd49.iso
or
e5c7e41f033f42cc20c745aa4ebc8bef4f86845e68b75449146b0c5f4a5a37ef cd49.iso
or
cd49.iso e5c7e41f033f42cc20c745aa4ebc8bef4f86845e68b75449146b0c5f4a5a37ef
The last format doesn't seem to work. Is that correct?