Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.8) Gecko/20100227 Thunderbird/3.0.3
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.