You are not logged in.
Is there a command-line tool that can create an arbitrarily simple checksum over random data?
For example I'd like to tell someone a phone number - after he said he received it, I do like
$chksum 3 phone.txt
A8F..and get a 3-character length checksum over the contents of phone.txt, by whatever method. The important part is that I can choose a really short checksum if I wanted to, instead of having to memorise an SHA hash or similar.
The idea here is that it must be practical enough to convey verbally to someone. In this regard, it should not distinguish between capital and non-capital letters either.
Last edited by mir91 (2014-09-29 10:14:40)
Offline
Just use the first N characters of a sha1 hash - like git does.
My: [ GitHub | AUR Packages ]
Offline
sha256sum phone.txt | head -c 3"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
'head' doesn't print a newline, 'cut' does:
~ $ sha256sum start | head -c 3
32f~ $ sha256sum start | cut -c -3
32fOffline
Moving to Programming and Scripting...
Offline
Thanks, why didn't I think of this!
Offline