Ethical Hacking

Learn to find vulnerabilities before the bad guys do! Gain real world hands on hacking experience in our state of the art hacking lab. Course designed and taught by expert instructors with years of penetration testing experience. 12 student maximum in every class. Certification attempt included in every package.
Computer Forensics Training at InfoSec Institute

Gain the in-demand skills of a certified computer examiner, learn to recover trace data left behind by fraud, theft, and cybercrime perpetrators. Discover the source of computer crime and abuse at your organization so that it never happens again. All of our class sizes are guaranteed to be 12 students or less to facilitate one-on-one interaction with one of our expert instructors.




Network Security SecProg
[Top] [All Lists]

SV: Java -> .NET RSA Encryption

Subject: SV: Java -> .NET RSA Encryption
Date: Wed, 30 Mar 2005 08:59:25 +0200
A tip regarding the exchange of keys:
Traditional Java keystores does not allow you to import
or export a private key. Only to generate it in the keystore.
However, you can load a PKCS12 (pfx) file as a keystore instead.
So by generating the keys using OpenSSL and packaging them
as a PKCS12-package you can make them available for both platforms
without installing additional providers.

Regards
Fredr!k
 

-----Ursprungligt meddelande-----
Från: john bart
Till: comp.lang.java.security@news2mail.com; secprog@securityfocus.com;
webappsec@securityfocus.com; SC-L@securecoding.org;
vuln-dev@securityfocus.com
Skickat: 2005-03-28 17:43
Ämne: Java -> .NET  RSA Encryption

Hello all,
I want to RSA encrypt a message in a java environment, and to decrypt it
in 
.NET.
I thought it would be easy - encrypt the message using a public key
(java 
environment), and decrypt it (.net environment) with the private key.
Sounds 
simple in theory...

So far, i didn't manage to do that.
I had problems from the beginning, when i tried to generate the key-pair
and 
export it between the environment. How can i generate the keys, put the 
private key in the .net environment and the private key in the java 
environment (JKS) ?

Also, do i need an external provider for java, like BouncyCastle? some
of 
the articles say that i must use that, but in the documentation of Java
1.5 
there's a provider that can do RSA encryption. I'm confused..

If enyone have an example to do such encryption (and some explanation on
key 
generation and exchange..) it'll be great...

thanks in advance,
john.

_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE!

http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/

<Prev in Thread] Current Thread [Next in Thread>