raul marzo

Greenhorn
+ Follow
since Apr 09, 2007
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by raul marzo

Hi

I'm developing a chess online game in java, and I would like to know if I actually need to apply some kind of security on communications between game clients and the server (as this is its arquitecture) apart from authentication, and which libraries would be suitable for this functionality, given the fact that, beeing an online game, the time processing the messages between clients and server should be minimal.

Thanks in advance
15 years ago
Hi!

I am starting a project that involves the creation of an online chess game. I've been reading a lot during the last few days about online games and java 2d libraries, but I would like to know about the existance of well proved frameworks or libraries made to develop java games and online communication between users.

Also i would like some advise about the best approach to mantain communication between users: client-server , using a master server, peer-to-peer, hybrid, etc.

Thanks in advance
15 years ago
Hi.

I'm trying to extract the certificate and "rsa private key" from a pem file created with openssl, in a midlet application(J2ME). I've been able to extract the cert info using Bouncy castle ASN1 class, but I cannot get the private key data. I have the following code to extract the rsa private key and decrypt it, however, it throws an exception when I init the cipher.





The private key in the pem file I want to decrypt is something like this:

-----BEGIN RSA PRIVATE KEY-----
Proc-Type: 4,ENCRYPTED
DEK-Info: DES-EDE3-CBC,F83023B53795F517

MwdlPLqo...
-----END RSA PRIVATE KEY-----


Could anybody told me what's wrong with the code, or tell me any alternative?
If I encrypt the private key with other algorithm, like AES, would be easier to decrypt the private key?

Thanks in advance.
16 years ago
Thanks for your quick response, Set.

First, I think the BC API for J2ME is just a subset of its J2SE API. For example, the KeyStore or CertificateFactory classes are not present in j2me.

Also, you understood right the whole thing about deriving a private key from a public key, but I think it doesn't make sense, does it?
16 years ago
I'll reformulate my question, because I changed my code so much that it's completely different to what I had previosly.

The question is: How can I load and use a .cer file (X509 format) in a mobile application, so that I could get its public key in order to extract its module and exponent, and generate a private key to sign some data?

I'm using satsa and Bouncy Castle cripto libs, but I can't make it work.

Any help would be appreciated, cause I'm really stuck with this thing.
16 years ago
Thanks for your response, but I'm working with J2ME and Bouncy Castle cripto libs, and I'm afraid that the KeyStore class is not available.

I'll reformulate my question: How can I read and use a .cer file (in X509 format) in a mobile application, so that I could extract its public key in order to extract its module and exponent, and generate a private key to sign some data?

Any help would be appreciated, cause I'm really stuck with this thing.
16 years ago
I would like to know if it's possible to extract the public and private keys from a pkcs#12 file, and how could I do that.

Any help would be appreciated.

Thanks in advance.
16 years ago
Hi.

I'm working in a mobile application that communicates with a web service, and it must read from a PKCS#12 file its public and private keys to sign some data. The problem is that I've managed to make it work in j2se, but I'm just a beginner in j2me deployment, and I would need some help to find equivalent libraries to the following ones:



If there aren't available equivalent libs to these, I would like to know how could I change the code (I'll post it if necessary) to make it work in j2me in a short span of time, because I'm running out of time...

Thanks in advance.
16 years ago
Thank you all.

At last, the application is up and running, and working quite well. I finnaly used a self made ConnectionPool class, combined with a singleton approach.

16 years ago
Thanks for your replies.

One last question. If I decide to stick with my old jdbc access to database, and I implement it using the singleton pattern, would that be any good?

I mean, the problem was that I was creating a connection for every query to the database, but I think that if I only have one instance of the classes that access the database, that would be enough to maintain that connections alive, doesn't it?
16 years ago
I hope it's not to late, but you can use the Quartz Plugin for Struts. You can download it and see examples here: JGSullivan Tools
16 years ago
When you talk about using the Spring Framework, are you saying to use Spring together with Struts, or simply replace Struts for Spring? I ask this because I need to work rather soon, and I don't have the time to recode all my application again.
16 years ago
I think the major problem comes with the inability to mantain database connections during a user session, because I couldn't figure out how to make a connection accesible to the beans that I use in the bussiness layer, or at least, not in a direct way without passing them throught actions, trying to maintain the different layers as independent as possible.

Any suggestions about how to fix that?
16 years ago
Hi,

I'm currently working on a website where I've been using Struts. To keep things clean, I layered the application, having my own jdbc database access classes to map the objects from the bussiness layer, but it has been a complete failure in terms of performance, so I'm thinking on using something like Hibernate, JDO, Castor, etc.

I need it to work in a short span of time, and maintaining the database queries and structure (which are a bit complicated and inherited from a fully functional app) unchanged.

Which is the persistante layer to go for?

Thanks in advance

(Sorry for my English, it's a bit rusty)
[ October 19, 2007: Message edited by: raul marzo ]
Hi,

I'm currently working on a website where I've been using Struts. To keep things clean, I layered the application, having my own jdbc database access classes to map the objects from the bussiness layer, but it has been a complete failure in terms of performance, so I'm thinking on using something like Hibernate, JDO, Castor, etc.

I need it to work in a short span of time, and maintaining the database queries and structure (which are a bit complicated and inherited from a fully functional app) unchanged.

Which is the persistante layer to go for?

Thanks in advance

(Sorry for my English, it's a bit rusty)

[ October 19, 2007: Message edited by: raul marzo ]
[ October 19, 2007: Message edited by: raul marzo ]
16 years ago