Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re^3: Code hanging with Crypt OpenPGP

by kennethk (Monsignor)
on Nov 12, 2013 at 19:30 UTC ( #1062256=note: print w/ replies, xml ) Need Help??


in reply to Re^2: Code hanging with Crypt OpenPGP
in thread Code hanging with Crypt OpenPGP

What kind of debugging environment do you have set up? Since Crypt::OpenPGP is pure-Perl, you should be able to isolate the particular operation in encrypt that's causing trouble.


#11929 First ask yourself `How would I do this without a computer?' Then have the computer do it the same way.


Comment on Re^3: Code hanging with Crypt OpenPGP
Download Code
Re^4: Code hanging with Crypt OpenPGP
by Anonymous Monk on Nov 12, 2013 at 19:54 UTC
    I know, but I could not find any information on how to attach the public key, as an example this one:
    my $ring = Crypt::OpenPGP::KeyRing->new( Data => qq^-----BEGIN PGP PUB +LIC KEY BLOCK----- Version: PGP 6.5.1 mQGiBES0BisRBAD11RjxN2lk+2eKsVj +fJSrjkrbhoIRS1eduMb1Q1dzbqNAG1L/j Srd+T/dfWEqWu0LqBwgSK/P6a+cdnENSFj8 +LQOWD8zbrXbok2gFoIkF/L1O/7znC 5IwFPP+2FZe1kFyY36PKooot+okYG/G16HNAuU3 +CzxBYCuqkxqEDeU1kdwCg/1jI FrbO0cUrJrit/6NIyzDBCOMEANgBXtHtdrdtmwE35Hc +FO2sdywvvIOE+L1Wouwku ewK6/bpLGa1LnYu7T7xO+CziYqjp9SIGiSPmZjQQPXfBrEt +CvLMCTC/mdylOP6Sh hrnLWgPgAV5d7wpR1VUQCugDDZ9s/ExQuQEeD3dHt2dBBco5/+l +vdr/cXE06J3x2 fETgA/9dhSfdp4h4PIKYkgDvTGIpFp6JeKTVd5PnTu80JO9JkkSWtPr +yukDT/smq ACzyrCkexY0zdGgFJ5mmrK/S5KNyrUOw46noCj07k6/l4dl5CCM0K670Jpo +YijL5 rAUnfvvcozjhqKpgwalGDsIZ+pDNTL2BjREZulU6mTEiO9iAxLQMZnR0LXRlc3Q +t a2V5iQB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Z5OqgqhIVl2HlyMGU4E8C8iTkuCStpndM +Fw ZchMKR7UbTswzI7m4t4RPLvpaF8YxmAJy9UzZEK3Ycnq5oNsgicKqgM2GVpky1GO o +AtMaIkARgQYEQIABgUCRLQGLwAKCRDs+BYScUQ0FoObAKD1vGbfNCeu/CVvwsTr 9mz6n +UmeTgCeNO9P7OkUuySN6D2YTYbKvgIAEes= =+ksY -----END PGP PUBLIC KEY BLO +CK-----^ );
    to the my $ct = $pgp->encrypt() code. Since you mentioned that you got the code to work I'd like to see where the differences are. Thanks.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1062256]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (13)
As of 2014-11-28 14:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (197 votes), past polls