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.