* Don't autovifivy @fields array entries.
[interchange.git] / code / Filter / sha1.filter
1 # Copyright 2007-2009 Interchange Development Group and others
2
3 # This program is free software; you can redistribute it and/or modify
4 # it under the terms of the GNU General Public License as published by
5 # the Free Software Foundation; either version 2 of the License, or
6 # (at your option) any later version. See the LICENSE file for details.
7
8 Require module Digest::SHA
9
10 CodeDef sha1 Filter
11 CodeDef sha1 Description sha1 sum
12 CodeDef sha1 Routine <<EOR
13
14 use Digest::SHA;
15
16 sub {
17         return Digest::SHA::sha1_hex($_[0]);
18 }
19 EOR