![]() This way you can track entities, if signature validation or decryption fails for some reason. Setting the debug attribute to a true value will cause Mail::GPG to dump files into the debug_dir (see beyond). So you probably don't want to use the default_passphrase attribute. SIGNATURE GPG MAIL PASSWORDAll methods expecting the passphrase will take it from here by default.Īware that storing the secret key password in many variables in your program increases the risk of being attacked by memory inspection. ![]() You can store the passphrase of the default_key_id using this attribute. It is used for all methods which expect a key id, if you don't pass a specific key id to them. This is the list of attributes you can pass to the new method and access using the methods set_attribute and get_attribute: default_key_id The new class method returns a new instance of the Mail::GPG class, initialized with the attributes passed as hash parameters. CONSTRUCTOR AND ATTRIBUTES new $mg = Mail::GPG->new ( The regression tests in the t/ directory of the distribution show exemplary usage of all Mail::GPG features. The script is rather small and a good example of Mail::GPG usage. It takes one or more filenames of mails as arguments, analyzes them, prints information about signatures and decrypts encrypteded mails (after asking for the correspondent passphrases). The Mail::GPG distribution contains the program mgpg-test: Usage: mgpg-test file. Please report any bugs to the author: Joern Reder. Note that the test 04.big needs some time, on an Athlon 1800XP about 12 seconds, so be patient ) KNOWN BUGSĬurrently none. You need to have gpg in your path for the tests to succeed, otherwise all useful tests will be skipped. Mail::GPG has a bunch of tests which will create a temporary gpg keyring to be able to do real encryption and stuff. MIME::QuotedPrint >= 2.20 (part of MIME-Base64 distribution) This Perl modules handles all the details of encrypting and signing Mails using GnuPG according to RFC 3156 and RFC 2440, that is OpenPGP MIME and traditional armor signed/encrypted mails. My $mail_text = $encrypted_entity->as_string My $encrypted_entity = $mg->mime_sign_encrypt ( Search => $entity = MIME::Entity->build (ĭata => , Mail::GPG - Handling of GnuPG encrypted / signed mails SYNOPSIS use Mail::GPG ![]() Details about parsing with MIME::Parser for Mail::GPG. SIGNATURE GPG MAIL VERIFICATION
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |