Name

sha1 — calculate SHA1 sum of input

DESCRIPTION

The filter outputs SHA1 sum for the input text.

EXAMPLES

Example: Filter example

[filter sha1][/filter]
[filter sha1]One[/filter]
[filter sha1]Two[/filter]
[filter sha1]MyPassword[/filter]
[filter sha1]Very long string[/filter]

          

NOTES

The sha1 filter uses the Digest::SHA1 module for the SHA1 calculation.

AVAILABILITY

sha1 is available in Interchange versions:

5.6.0, 5.7.0 (cvs-head)

SOURCE

Interchange 5.7.0:

Source: code/Filter/sha1.filter
Lines: 19


# Copyright 2007 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.
# 
# $Id: sha1.filter,v 1.1 2007/07/24 02:24:43 jon Exp $

CodeDef sha1 Filter
CodeDef sha1 Description sha1 sum
CodeDef sha1 Routine <<EOR

use Digest::SHA1;

sub {
return Digest::SHA1::sha1_hex($_[0]);
}
EOR

AUTHORS

Jon Jensen

SEE ALSO

md5(7ic)

DocBook! Interchange!