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
Crypt::GpgME(3) User Contributed Perl Documentation Crypt::GpgME(3)

Crypt::GpgME - Perl interface to libgpgme

    use IO::File;
    use Crypt::GpgME;
    my $ctx = Crypt::GpgME->new;
    $ctx->set_passphrase_cb(sub { 'abc' });
    my $signed = $ctx->sign( IO::File->new('some_file', 'r') );
    print while <$signed>;

    my $version = Crypt::GpgME->GPGME_VERSION;
    my $version = $ctx->GPGME_VERSION;

Returns a string containing the libgpgme version number this module has been compiled against.

    my $ctx = Crypt::GpgME->new;

Returns a new Crypt::GpgME instance. Throws an exception on error.

    my $fh = $ctx->card_edit($key, $coderef);
    my $fh = $ctx->card_edit($key, $coderef, $user_data);

    Crypt::GpgME->check_version;
    Crypt::GpgME->check_version($version);

    $ctx->delete($key);
    $ctx->delete($key, $allow_secret);

    my $fh = $ctx->edit($key, $coderef);
    my $fh = $ctx->edit($key, $coderef, $user_data);

    $ctx->engine_check_version($proto);
    Crypt::GpgME->engine_check_version($proto);

    my ($result, $pubkey_fh, $seckey_fh) = $ctx->genkey($parms);

    my $armor = $ctx->get_armor;

    my $engine_info = $ctx->get_engine_info;
    my $engine_info = Crypt::GpgME->get_engine_info;

    my $include_certs = $ctx->get_include_certs;

    my $key = $ctx->get_key($fpr);
    my $key = $ctx->get_key($fpr, $secret);

    my $keylist_mode = $ctx->get_keylist_mode;

    my $protocol = $ctx->get_protocol;

    my $textmode = $ctx->get_protocol;

    my @results = $ctx->keylist($pattern);
    my @results = $ctx->keylist($pattern, $secret_only);

    $ctx->set_armor($armor);

    $ctx->set_engine_info($proto, $file_name, $home_dir);
    Crypt::GpgME->set_engine_info($proto, $file_name, $home_dir);

    $ctx->set_include_certs;
    $ctx->set_include_certs($nr_of_certs);

    $ctx->set_keylist_mode;
    $ctx->set_keylist_mode($keylist_mode);

    $ctx->set_locale($category, $value);
    Crypt::GpgME->set_locale($category, $value);

    $ctx->set_passphrase_cb($coderef);
    $ctx->set_passphrase_cb($coderef, $user_data);

    $ctx->set_progress_cb($coderef);
    $ctx->set_progress_cb($coderef, $user_data);

    $ctx->set_protocol;
    $ctx->set_protocol($proto);

    $ctx->set_textmode($textmode);

    $ctx->sig_notation_add($name, $value);
    $ctx->sig_notation_add($name, $value, $flags);

    $ctx->sig_notation_clear;

    my @notation = $ctx->sig_notation_get;

    my $fh = $ctx->sign($plain);
    my $fh = $ctx->sign($plain, $mode);

    $ctx->signers_add($key);

    $ctx->signers_clear;

    my $key = $ctx->signers_enum($seq);

    my ($result, $plain) = $ctx->verify($sig);
    my $result = $ctx->verify($sig, $signed_text);

Florian Ragwitz, "<rafl at debian.org>"

Please report any bugs or feature requests to "bug-crypt-gpgme at rt.cpan.org", or through the web interface at <http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Crypt-GpgME>. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

You can find documentation for this module with the perldoc command.

    perldoc Crypt::GpgME

You can also look for information at:

  • AnnoCPAN: Annotated CPAN documentation

    <http://annocpan.org/dist/Crypt-GpgME>

  • CPAN Ratings

    <http://cpanratings.perl.org/d/Crypt-GpgME>

  • RT: CPAN's request tracker

    <http://rt.cpan.org/NoAuth/Bugs.html?Dist=Crypt-GpgME>

  • Search CPAN

    <http://search.cpan.org/dist/Crypt-GpgME>

Copyright 2007-2009 Florian Ragwitz, all rights reserved.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

2025-07-03 perl v5.40.2

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

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