CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Advanced:
Perl and .NET Cryptography

 



terrjie
New User

May 17, 2006, 12:35 AM

Post #1 of 3 (664 views)
Perl and .NET Cryptography Can't Post

Hi everybody

I need to encrypt some data with a public RSA-Key that looks like that:

[code]<RSAKeyValue>

<Modulus>mCqFIOtiqQOuCo5jNrtVoRHBYn7rd2nbUB1ERPM54H3d7XsYUREUOvfZboGMszu
6Uyn2Rxrz/jeYtsXuSTarZKPw9iH14zu3NOwdGJSn+JpeLQpiZAZ11e3SPf3SuO3vxWxWhUA
0iS6MmhDeZvgwWKUM/0k0Z1jm3lJ04lScq5c=</Modulus>
<Exponent>AQAB</Exponent>

<P>yZXEpjsyDdJ+H2o2OIjF9/SuhQKdoGiHGeQO3g50MFcmDhFsb+fSq+f1ib8dE6ZmbVSYF
9CRxfGVSV4IfcRheQ==</P>

<Q>wT266tcXgamAwtb+YLx4USUntSVRwdoaSi4nkYaSAiyt3a78IgqSbWLuNqj1eT/Q1RfAh
t68r0nxhc1+HF7Bjw==</Q>

<DP>XMKDC+8fNEbs7G3GYAEkv7Wi/Oe4OtD+ogZUZRAHnRrtEvoniNMHGT2SugDsU1d1uId9
uS+rdId3J5ySkbTlGQ==</DP>

<DQ>olZJgJ/Rj4vmL8iNSpcKTGUKCpOfa0reaxL7CrYSUuFV7rUGuAJJoLtLg3/NOF70ARBD
HQphWKC11cIb/5la4Q==</DQ>

<InverseQ>VeZpGskJrC73YbnSZ+2ZWGcpaLD87kjDx686rEew2sQekgnQ1+yic7HBfvWwxW
34JmN6wQtXJ9FmvOzuK4Af0A==</InverseQ>

<D>gkMMGmVG3VcIG4NPDaASDkqP2Si7nEsjcs7LDZeF+VbmsBDLfUJ4pg5ctUvzzc+Yru7iJ
Ha/XuXrNrP0S/qf90KdxU09eePO/vmrouoPER7WuNai5A1YxGYT3KP4z1PAkUo6lpudhVQpH
9B7q8L4/+F1k5ewPuFPYahDGWJl/fE=</D>
</RSAKeyValue>[/code]

The guys who gave me that key are working with .NET, and I couldn't find anything about these keys and Perl.
Does anybody know how to convert such a key or use it with Perl???

cu
Terrjie


displeaser
Novice

May 22, 2006, 7:32 AM

Post #2 of 3 (650 views)
Re: [terrjie] Perl and .NET Cryptography [In reply to] Can't Post

Hi,

the Crypt::RSA module might be what you are looking for.

You can find it here: http://search.cpan.org/~vipul/Crypt-RSA-1.57/lib/Crypt/RSA.pm

Displeaser


terrjie
New User

May 22, 2006, 8:00 AM

Post #3 of 3 (648 views)
Re: [displeaser] Perl and .NET Cryptography [In reply to] Can't Post

Hi

Crypt::RSA doesn't understand this keyformat. That's the problem, and i can't find a perl-module that knows how to use these keys, neither a converting tool...

greetz
terrjie

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives