Name

encrypt — PGP-encrypt input

DESCRIPTION

The filter PGP-encrypts the provided input.

It accepts two optional arguments, encryption key and encryption program.

Specifying command line options for the encryption program isn't possible, but it isn't needed as Interchange automatically adds the following options, depending on the program recognized:

  • gpg --batch --always-trust -e -a -r KEY

  • pgpe -fat -r KEY

  • pgp -fat - KEY

EXAMPLES

Example: Filter example using specific key ID

[filter encrypt.KEY]Secret phrase or a credit card number[/filter]

          

Example: Filter example using specific key ID and encrypt program

[filter encrypt.KEY./usr/local/bin/gpg]Secret phrase or a credit card number[/filter]

          

NOTES

AVAILABILITY

encrypt is available in Interchange versions:

4.6.0-5.9.0 (git-head)

SOURCE

Interchange 5.9.0:

Source: code/Filter/encrypt.filter
Lines: 18


# Copyright 2002-2007 Interchange Development Group and others
# Copyright 1996-2002 Red Hat, Inc.
# 
# 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: encrypt.filter,v 1.5 2007-03-30 23:40:44 pajamian Exp $

CodeDef encrypt Filter
CodeDef encrypt Description PGP encrypt
CodeDef encrypt Routine <<EOR
sub {
my ($val, $tag, $key) = @_;
return Vend::Order::pgp_encrypt($val, $key);
}
EOR

AUTHORS

Interchange Development Group

SEE ALSO

PGP(7ic), EncryptProgram(7ic)

DocBook! Interchange!