public key encryption

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View

I am looking to encrypt a string with PERL using private/public key
encryption.  I have tried several solutions from a google query
without much luck.  The string will need to be decrypted in a ASP.NET
environment.  One of the examples I found gives me errors:

script (file called "rsa"):
print pack"C*",split/\D+/,`echo "16iII*o\U@{$/=$z;

calling stmt:  echo "Mother of Perl" | rsa -k=10001 -n=1967cb529 >

7 packC*,split/D+/,134 is unimplemented 125 is unimplemented 100 is
unimplemented 173 is unimplemented 44 is unimplemented stack empty
stack empty stack empty stack empty 175 is unimplemented 134 is
unimplemented save:args 116 is unimplemented exp not an integer divide
by 0 divide by 0 0
sg.rsa: END

Re: public key encryption

jpw wrote:
Quoted text here. Click to load it

This is one of the "export a cryptosystem" sigs that relies mainly on an
external program called dc. /

I believe this is an interesting novelty item but probably not intended
for general use by typical Perl users.

Quoted text here. Click to load it

I think you'll find it much easier to use a CPAN module.
For example:


Site Timeline