Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: RSA encrypt but no decrypt. What is the problem?

by choroba (Cardinal)
on May 07, 2021 at 08:03 UTC ( [id://11132202]=note: print w/replies, xml ) Need Help??


in reply to RSA encrypt but no decrypt. What is the problem?

What versions of the modules do you use? I've installed all three Crypt::OpenSSL::* fresh from CPAN and running your code I'm getting
RSA.xs:218: OpenSSL error: no inverse at decrypt.pl line 34.

where line 34 is

print $OUTF $rsa->decrypt($buffer);

map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]

Replies are listed 'Best First'.
Re^2: RSA encrypt but no decrypt. What is the problem?
by Forb (Novice) on May 08, 2021 at 10:15 UTC

    First, I compile the necessary modules into the installation distribution in my account at https://platform.activestate.com/ Then I download the distribution and install it on my PC. You can see all versions in the picture: https://photos.google.com/photo/AF1QipN8rg6BB3wCq1YXo4uG_mrcVu-8U28e122W7zUv . I see that these are the latest versions.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (4)
As of 2024-03-29 10:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found