views:

58

answers:

3

Do I need to encode my encrypted bytes when sending it through java data streams for instant messaging? Sending encrypted bytes don't look very safe to me.

If so, should I use Hex or Base64 encoding?

Thanks

A: 

vladimir, how are u , i have a similiar problem, im building an ecommerce app for my school.

Im using the bouncy castle libraries

How do i read the public key from the certificate once the ssl connection has been open between the server.

Hope you can help.

mike
This should be asked as a separate question. StackOverflow isn't a forum: it doesn't really do comments threads. It does questions and answers. If you aren't giving an answer, go somewhere else.
TRiG
A: 

It turns out that its up to me. There is no real need unless I'm working with email protocols. Since I've implemented everything myself, its just a matter of convenience.

Vladimir
A: 

SSL already encrypts your data. Although the need may come up, encrypting data twice is usually unnecessary and consumes too much CPU time. This is especially relevant on mobile devices.

Thorsten79
the second encryption takes place so that the server is unable to eavesdrop on the conversations.
Vladimir
why do you need SSL in the first place then?
Thorsten79