Carson Chittom <
car...@wistly.net> wrote:
> Andreas Leitgeb <
a...@gamma.logic.tuwien.ac.at> writes:
>> PS: actually I'd have fancied some tcl-only "hmac-sha512" -
>> for now I'm exec'ing php just for that function.
> I don't know about tcllib, but if what you're looking for is to stop
> using PHP, why not just use OpenSSL, which is probably already installed
> for other programs? I.e.,
> $ openssl sha512 filename.txt
I had done a couple of experiments with openssl, already, but they all
had a flaw in it, as I see now: I had tried openssl dgst -sha512 -hmac ...
Seeing your "openssl sha512 ...", I made new experiments, and
[exec openssl sha512 -hmac $key << $data]
gave me the expected (i.e. same as php's) result :-)
Thanks!
PS: I do perceive calling openssl instead of php as an improvement :-)