On 02/11/10 16:20, Pádraig Brady wrote: > env printf $(sha1sum file | sed 's/ .*//; s/\(..\)/\\x\1/g') | base64
I just dug out an old script of mine that did low level manipulations like this, and I had used: openssl dgst -sha1 -binary $file | openssl enc -base64 While that does show there is a need for this, it also shows there are widely available tools to do it already. cheers, Pádraig.