%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /usr/local/share/man/man3/
Upload File :
Create Path :
Current File : //usr/local/share/man/man3/GnuPG::Tie.3pm

.\" Automatically generated by Pod::Man 2.27 (Pod::Simple 3.28)
.\"
.\" Standard preamble:
.\" ========================================================================
.de Sp \" Vertical space (when we can't use .PP)
.if t .sp .5v
.if n .sp
..
.de Vb \" Begin verbatim text
.ft CW
.nf
.ne \\$1
..
.de Ve \" End verbatim text
.ft R
.fi
..
.\" Set up some character translations and predefined strings.  \*(-- will
.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left
.\" double quote, and \*(R" will give a right double quote.  \*(C+ will
.\" give a nicer C++.  Capital omega is used to do unbreakable dashes and
.\" therefore won't be available.  \*(C` and \*(C' expand to `' in nroff,
.\" nothing in troff, for use with C<>.
.tr \(*W-
.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p'
.ie n \{\
.    ds -- \(*W-
.    ds PI pi
.    if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch
.    if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\"  diablo 12 pitch
.    ds L" ""
.    ds R" ""
.    ds C` ""
.    ds C' ""
'br\}
.el\{\
.    ds -- \|\(em\|
.    ds PI \(*p
.    ds L" ``
.    ds R" ''
.    ds C`
.    ds C'
'br\}
.\"
.\" Escape single quotes in literal strings from groff's Unicode transform.
.ie \n(.g .ds Aq \(aq
.el       .ds Aq '
.\"
.\" If the F register is turned on, we'll generate index entries on stderr for
.\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index
.\" entries marked with X<> in POD.  Of course, you'll have to process the
.\" output yourself in some meaningful fashion.
.\"
.\" Avoid warning from groff about undefined register 'F'.
.de IX
..
.nr rF 0
.if \n(.g .if rF .nr rF 1
.if (\n(rF:(\n(.g==0)) \{
.    if \nF \{
.        de IX
.        tm Index:\\$1\t\\n%\t"\\$2"
..
.        if !\nF==2 \{
.            nr % 0
.            nr F 2
.        \}
.    \}
.\}
.rr rF
.\" ========================================================================
.\"
.IX Title "GnuPG::Tie 3"
.TH GnuPG::Tie 3 "2011-11-23" "perl v5.16.3" "User Contributed Perl Documentation"
.\" For nroff, turn off justification.  Always turn off hyphenation; it makes
.\" way too many mistakes in technical documents.
.if n .ad l
.nh
.SH "NAME"
GnuPG::Tie::Encrypt \- Tied filehandle interface to encryption with the GNU Privacy Guard.
.PP
GnuPG::Tie::Decrypt \- Tied filehandle interface to decryption with the GNU Privacy Guard.
.SH "SYNOPSIS"
.IX Header "SYNOPSIS"
.Vb 2
\&    use GnuPG::Tie::Encrypt;
\&    use GnuPG::Tie::Decrypt;
\&
\&    tie *CIPHER, \*(AqGnuPG::Tie::Encrypt\*(Aq, armor => 1, recipient => \*(AqUser\*(Aq;
\&    print CIPHER <<EOF;
\&This is a secret
\&EOF
\&    local $/ = undef;
\&    my $ciphertext = <CIPHER>;
\&    close CIPHER;
\&    untie *CIPHER;
\&
\&    tie *PLAINTEXT, \*(AqGnuPG::Tie::Decrypt\*(Aq, passphrase => \*(Aqsecret\*(Aq;
\&    print PLAINTEXT $ciphertext;
\&    my $plaintext = <PLAINTEXT>;
\&
\&    # $plaintext should now contains \*(AqThis is a secret\*(Aq
\&    close PLAINTEXT;
\&    untie *PLAINTEXT;
.Ve
.SH "DESCRIPTION"
.IX Header "DESCRIPTION"
GnuPG::Tie::Encrypt and GnuPG::Tie::Decrypt provides a tied  file handle
interface to encryption/decryption facilities of the \s-1GNU\s0 Privacy guard.
.PP
With GnuPG::Tie::Encrypt everyting you write to the file handle will be
encrypted. You can read the ciphertext from the same file handle.
.PP
With GnuPG::Tie::Decrypt you may read the plaintext equivalent of a
ciphertext. This is one can have been written to file handle.
.PP
All options given to the tie constructor will be passed on to the underlying
GnuPG object. You can use a mix of options to output directly to a file or
to read directly from a file, only remember than once you start reading
from the file handle you can't write to it anymore.
.SH "AUTHOR"
.IX Header "AUTHOR"
Francis J. Lacoste <francis.lacoste@Contre.COM>
.SH "COPYRIGHT"
.IX Header "COPYRIGHT"
Copyright (c) 1999, 2000 iNsu Innovations Inc.
Copyright (c) 2001 Francis J. Lacoste
.PP
This program is free software; you can redistribute it and/or modify
it under the terms of the \s-1GNU\s0 General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
.SH "SEE ALSO"
.IX Header "SEE ALSO"
\&\fIgpg\fR\|(1) \fIGnuPG\fR\|(3)

Zerion Mini Shell 1.0