<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="generator" content="Osso Notes">
<title></title></head>
<body>
<p>can you at the same time merge the  uuid function and this into a cryptofuncs module?
<br>
<br>I'd try to avoid having completely separate plugin for each template function.
<br>
<br>----- Original message -----
<br>> Jakub Jankowski <<a href="mailto:shasta@toxcorp.com">shasta@toxcorp.com</a>> writes:
<br>>
<br>> > I'd love to see $(hash) with an (optional?) argument specifying the
<br>> > digest  algorithm to use, but even with just SHA-1 it's really cool
<br>> > (and simple).
<br>>
<br>> I just implemented that (SHA1, SHA256 and SHA512 supported at the
<br>> moment), and a few other minor improvements on the feature/3.4/tfhash
<br>> branch of my github repo[1].
<br>>
<br>> I will add the $(sha1) and similar wrappers in a few hours, once I'm
<br>> near a computer again, unless someone beats me to it: all it takes is
<br>> factoring out the bulk of tf_hash, into something that does not require
<br>> a GString argv[], but takes separate arguments, then turn tf_hash,
<br>> tf_sha1, etc into thin wrappers calling that. About 10 minutes of work
<br>> tops, and there are cookies to be had! :)
<br>>
<br>>  [1]: <a href="https://github.com/algernon/syslog-ng">https://github.com/algernon/syslog-ng</a>
<br>>
<br>> --
<br>> |8]
<br>> ______________________________________________________________________________
<br>> Member info: <a href="https://lists.balabit.hu/mailman/listinfo/syslog-ng">https://lists.balabit.hu/mailman/listinfo/syslog-ng</a>
<br>> Documentation:
<br>> <a href="http://www.balabit.com/support/documentation/?product=syslog-ng">http://www.balabit.com/support/documentation/?product=syslog-ng</a> FAQ:
<br>> <a href="http://www.balabit.com/wiki/syslog-ng-faq">http://www.balabit.com/wiki/syslog-ng-faq</a>
<br>>
<br><br></p>
</body>
</html>