GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  GPG (n)

NAME

gpg - Tcl Interface to GnuPG

CONTENTS

Synopsis
Description
Commands
Examples
Authors
Keywords
Copyright

SYNOPSIS

package require Tcl 8.4

package require Tclx

package require gpg 1.0

set gpg [::gpg::new]

$gpg free

$gpg set -property property ?-value value?

$gpg unset -property property

$gpg list-keys ?-patterns patterns? ?-secretonly boolean? ?-command command?

$gpg info-key -key keytoken

$gpg encrypt -input input ?-recipients recipients? ?-sign boolean? ?-command command?

$gpg decrypt -input input ?-checkstatus boolean? ?-command command?

$gpg sign -input input ?-mode mode? ?-command command?

$gpg verify -signature signature ?-input input? ?-command command?

set recipient [::gpg::recipient]

$recipient add -name name ?-validity valid?

$recipient list


   








\L’|0u-1v’\l’75u+3n_’\L’0u+1v-0u’\l’|0u-1.5n_’



\L’|0u-1v’\L’0u+1v-0u’\l’|0u-1.5n_’





DESCRIPTION

This is a Tcl interface to GNU Privacy Guard with interface similar to TclGPGME.

COMMANDS

set gpg [::gpg::new]
  Create a new GPG context token.
$gpg free
  Destroy GPG token and free its resources.
$gpg set -property property ?-value value?
  Set or query a specified property. The property argument may be one of the following:
armor boolean
textmode boolean
passphrase-callback command
encoding
passphrase-encoding
 
$gpg unset -property property
  Unset a specified property.
$gpg list-keys ?-patterns patterns? ?-secretonly boolean? ?-command command?
  Return list of key tokens which match any of a specified patterns in the patterns list patterns.
$gpg info-key -key keytoken
  Return a serialized array of key properties.
$gpg encrypt -input input ?-recipients recipients? ?-sign boolean? ?-command command?
  Encrypt message (using either symmetric or asymmetric algorithm).
$gpg decrypt -input input ?-checkstatus boolean? ?-command command?
  Decrypt message.
$gpg sign -input input ?-mode mode? ?-command command?
  Sign message.
$gpg verify -signature signature ?-input input? ?-command command?
  Verify signature.
set recipient [::gpg::recipient]
  Create recipients token.
$recipient add -name name ?-validity valid?
  Add name to a recipient token.
$recipient list
  Return a list of recipients in a recipient token.

ASYNCHRONOUS MODE

Many GPG subcommands may posess -command options. It turns asynchronous mode on and specifies a callback which is called to return operation result. This means that the command returns immediately, the pipe to GPG is switched to non-blocking mode and data from it is read only when it is available. After the operation is completed the callback is invoked with appended status (\"ok\" or \"error\") and the operation result in the same form as it would be returned in synchronous mode.

EXAMPLES

Encrypt the word Hello using a symmetric encryption using passphrase "abcdefgh":

proc pass {args} {return abcdefgh} set gpg [::gpg::new] $gpg set -property armor -value true $gpg set -property encoding -value utf-8 $gpg set -property passphrase-callback -value pass puts [$gpg encrypt -input Hello] $gpg free

AUTHORS

Sergei Golovan

KEYWORDS

GnuPG, Tcl

COPYRIGHT

Copyright (c) 2008-2014 Sergei Golovan <sgolovan@nes.ru>

Search for    or go to Top of page |  Section n |  Main Index


gpg GPG (n) 1&.0

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.