#What is safest way to transfer info from one java app to another?
1 messages · Page 1 of 1 (latest)
<@&987246399047479336> please have a look, thanks.
While you are waiting for getting help, here are some tips to improve your experience:
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.
gprc
or websockets but try grpc first
essentially have a client / server architecture
i mean like not between servers but like game on pc
depends
if you only want an app to launch another, then launch it and pass the args
but passing through args is not too secure, it can be captured
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
jni?
use native methods
still someone will eventually reverse engineer it if they really want too
if this isn't secure, then nothing is
what do you want to pass
user name and auth data
only pass a token
if it is on the same machine, nothing bad should happen
@little lichen
it can be easier to crack etc
no
processhacker sees arguments
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
Closed the thread.
and also you can try what Filip said @little lichen
you can have a socket which is interacted by the same machine