[syslog-ng] [PATCH] tfhash: New template function to calculate the SHA1 of its input

Gergely Nagy algernon at madhouse-project.org
Sat Aug 4 21:52:29 CEST 2012


Jakub Jankowski <shasta at toxcorp.com> writes:

> I'd love to see $(hash) with an (optional?) argument specifying the digest 
> algorithm to use, but even with just SHA-1 it's really cool (and simple).

Seconded! What I'd like best, is $(hash METHOD STUFF [LENGTH]), with
$(sha1), $(sha256) and perhaps others as lightweight wrappers that
pre-fill the method.

I'll see if I can rearrange the code a bit to do just that, lets hope my
connection survives a git clone.

-- 
|8]


More information about the syslog-ng mailing list