<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body text="#000000" bgcolor="#FFFFFF">
tfhash: New template function to calculate the SHA1 of its input<br>
<br>
This patch adds a new template function called $(hash) which can be
used<br>
to calculate the SHA1 hash of its inputs. As it uses the SHA1()
function from<br>
OpenSSL, it is only available if syslog-ng is compiled using
--enable-ssl.<br>
<br>
One use case for it can be when you'd like to anonymize sensitive
parts of the<br>
log message (eg. the user name) you parsed out using patterndb
before storing<br>
or forwarding it for further analysis but would like to retain the
ability to<br>
correlate messages along this value. Beware though that such simple
anonymization<br>
can be broken if there's enough data available, see<br>
<a class="moz-txt-link-freetext" href="http://arxiv.org/pdf/cs/0610105v2.pdf">http://arxiv.org/pdf/cs/0610105v2.pdf</a> for references and examples.<br>
<br>
Thanks for the original idea to Martin Grauel.<br>
<br>
Signed-off-by: Peter Gyongyosi <a class="moz-txt-link-rfc2396E" href="mailto:gyp@balabit.hu"><gyp@balabit.hu></a><br>
---<br>
[see the patch itself at
<a class="moz-txt-link-freetext" href="https://github.com/gyp/syslog-ng-3.4/commit/5c6e97d94694eef2aa76fa61a1c8928269f781ff">https://github.com/gyp/syslog-ng-3.4/commit/5c6e97d94694eef2aa76fa61a1c8928269f781ff</a>
]<a
href="https://github.com/gyp/syslog-ng-3.4/commit/5c6e97d94694eef2aa76fa61a1c8928269f781ff"><br>
</a>
</body>
</html>