sha1 — calculate SHA1 sum of input
Example: Filter example
[filter sha1][/filter] [filter sha1]One[/filter] [filter sha1]Two[/filter] [filter sha1]MyPassword[/filter] [filter sha1]Very long string[/filter]Example in action:
da39a3ee5e6b4b0d3255bfef95601890afd80709
b58b5a8ced9db48b30e008b148004c1065ce53b1
16e018ece5a1d3b750531de58d16b961de23d629
daa1f31819ed4928fd00e986e6bda6dab6b177dc
3c6e77108d6a255632f69c768efd4887ecd19efd
Interchange 5.9.0:
Source: code/Filter/sha1.filter
Lines: 15
# Copyright 2007-2009 Interchange Development Group and others
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version. See the LICENSE file for details.
CodeDef sha1 Filter
CodeDef sha1 Description sha1 sum
CodeDef sha1 Routine <<EOR
sub {
return Vend::Util::sha1_hex($_[0]);
}
EOR