#What is safest way to transfer info from one java app to another?

1 messages · Page 1 of 1 (latest)

little lichen
#

What is safest way to transfer info for example from game launcher to game?

stone plazaBOT
#

<@&987246399047479336> please have a look, thanks.

stone plazaBOT
#

While you are waiting for getting help, here are some tips to improve your experience:

Code is much easier to read if posted with syntax highlighting and proper formatting.

If nobody is calling back, that usually means that your question was not well asked and hence nobody feels confident enough answering. Try to use your time to elaborate, provide details, context, more code, examples and maybe some screenshots. With enough info, someone knows the answer for sure.

Don't forget to close your thread using the command </help-thread close:1027500463647621170> when your question has been answered, thanks.

fiery glacier
#

gprc

#

or websockets but try grpc first

#

essentially have a client / server architecture

little lichen
#

i mean like not between servers but like game on pc

fierce river
little lichen
#

i can encrypt string i guess

#

but isnt there some better way?

#

like class loader?

#

launcher can class load game

#

like both are in java

fiery glacier
#

jni?

#

use native methods

#

still someone will eventually reverse engineer it if they really want too

fierce river
#

what do you want to pass

little lichen
#

user name and auth data

fierce river
#

only pass a token

#

if it is on the same machine, nothing bad should happen

#

@little lichen

little lichen
#

it can be easier to crack etc

fierce river
#

no

little lichen
#

processhacker sees arguments

fierce river
#

if you pass a token you have total control about its lifetime

#

you can decide that it can be used once and expire after a few seconds

#

and now, even if someone manages to hack the machine, even if it manage to somehow get the args which is probably impossible already, he can't even use it

#

but note that doing all of that seems pretty hard for a hacker already

#

you can also use env variables

stone plazaBOT
#

Closed the thread.

fierce river