Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Page 2 of 2 FirstFirst 12
Results 26 to 33 of 33

Thread: Secure Java Files

  1. #26
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    On vacation
    Posts
    22,754
    Thanks
    53
    Thanked 2,425 Times in 2,378 Posts

    Default Re: Multiplayer Support

    I have 0 knowledge of networking
    Start by working on increasing your knowledge of networking. Take a look at the tutorial: Trail: Custom Networking (The Java™ Tutorials)
    If you don't understand my answer, don't ignore it, ask a question.

  2. #27
    Super Moderator
    Join Date
    Jun 2013
    Location
    So. Maryland, USA
    Posts
    5,520
    My Mood
    Mellow
    Thanks
    215
    Thanked 697 Times in 679 Posts

    Default Re: Multiplayer Support

    There are several game-based tutorials that will introduce you to the basic server-client networking concepts. Search for 'java network tic-tic-toe' and similar.

  3. #28
    Member jdv's Avatar
    Join Date
    Jul 2014
    Location
    This Land
    Posts
    73
    Thanks
    0
    Thanked 5 Times in 5 Posts

    Default Re: Secure Java Files

    Just cutting in here to say that it is totally possible to keep someone from decompiling your classes (or make it infeasible to do so), but it requires buying or implementing a special classloader that invokes classes that have been encrypted prior to bundling them up. That is, this functionality is not directly part of the JDK.

    Products that I have used recently that offer these services are those from WIBU-systems, but there are others.

    The problem here is if /any/ VM can see /any/ byte-code, it can decompile it (to some extent).

    So, a solution discussed here, where a server-side component runs the byte-code, sending app-specific messages (that you probably want signed and/or encrypted, or at least error-checked) to a client component, is actually pretty common. Such client-server messages are often parsed by something that is a language in its own right, so many clients actually run a "little" language to process messages, dispatch message, update interfaces, etc.

    This is where, for example, Lua is used quite a bit.

  4. #29
    Junior Member
    Join Date
    Oct 2014
    Posts
    16
    Thanks
    0
    Thanked 1 Time in 1 Post

    Default Re: Multiplayer Support

    Quote Originally Posted by Norm View Post
    Start by working on increasing your knowledge of networking. Take a look at the tutorial: Trail: Custom Networking (The Java™ Tutorials)
    It doesnt explain ANYTHING, and i dont want to know how to do something but why it works so i can use it in other programs too and not only in that program.

    --- Update ---

    Quote Originally Posted by GregBrannon View Post
    There are several game-based tutorials that will introduce you to the basic server-client networking concepts. Search for 'java network tic-tic-toe' and similar.
    Didnt find any videos where people explain anything they do.

    --- Update ---

    I DONT need to know anything about networking right now i just want to know how its possible to let the server handle anything because if you like sent a package or something telling the server to move the player the client can edit the code and send 2 packages instead of 1 making him/her walk faster.

    Also how should i save X and Y? Like every minute or every 10 seconds? And also how can i validate if the player is really on that X and Y?

    --- Update ---

    I DONT need to know anything about networking right now i just want to know how its possible to let the server handle anything because if you like sent a package or something telling the server to move the player the client can edit the code and send 2 packages instead of 1 making him/her walk faster.

    Also how should i save X and Y? Like every minute or every 10 seconds? And also how can i validate if the player is really on that X and Y?

  5. #30
    Crazy Cat Lady KevinWorkman's Avatar
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    5,424
    My Mood
    Hungover
    Thanks
    144
    Thanked 636 Times in 540 Posts

    Default Re: Multiplayer Support

    The best advice I can give you is that you might want to be a little more mindful of your attitude, and you might want to really reign in your expectations.

    The stuff you're talking about isn't trivial. The only way to get anywhere near your goal is by starting with a much smaller goal. You've been given two suggestions on how to start, which you seem to be actively resisting for some reason.

    Is it possible? Sure. Is it possible with your current approach? Nope.
    Useful links: How to Ask Questions the Smart Way | Use Code Tags | Java Tutorials
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

  6. #31
    Junior Member
    Join Date
    Oct 2014
    Posts
    16
    Thanks
    0
    Thanked 1 Time in 1 Post

    Default Re: Multiplayer Support

    Quote Originally Posted by KevinWorkman View Post
    The best advice I can give you is that you might want to be a little more mindful of your attitude, and you might want to really reign in your expectations.

    The stuff you're talking about isn't trivial. The only way to get anywhere near your goal is by starting with a much smaller goal. You've been given two suggestions on how to start, which you seem to be actively resisting for some reason.

    Is it possible? Sure. Is it possible with your current approach? Nope.
    U need to understand what i mean first.. I DONT want to learn ANYTHING without understanding every line of code. That tutorial link Norm gave me wasn't explaining any line of code, only the whole program, but i want to understand every part so i can put all those parts together and make a program i want.

    I searched on YouTube for Networking with simple games like tic tac toe but still its even hard to find a video about that, and its impossible to find a video of someone who can explain the code he is typing and not just type it.

    I want to know how its possible for a server to handle something so the client CANNOT be decompiled and hack. If the client is decompiled i dont want to let the user be able to change any code which can move the player or do anything. I was thinking about making an array or list of each player when he/she connects to the server and count every second howmany 'packages' are sent and stop accepting them when it reaches 60 so there are only 60 updates a second and the client wont be able to change that. But i dont know if that is the right way to do it or if that is even possible to count howmany packages u receive from every player and accept 60 a second only. So thats what im askigg for, i will try finding a good tutorial by myself to learn about sockets and packages but i want to know what i need to know.

  7. #32
    Senior Member
    Join Date
    Jul 2013
    Location
    Europe
    Posts
    666
    Thanks
    0
    Thanked 121 Times in 105 Posts

    Default Re: Secure Java Files

    Oh yeah? And who is holding them back from decompiling your custom class loader? You want to have an additional class loader to load your encrypted class loader?

  8. #33
    Super Moderator
    Join Date
    Jun 2013
    Location
    So. Maryland, USA
    Posts
    5,520
    My Mood
    Mellow
    Thanks
    215
    Thanked 697 Times in 679 Posts

    Default Re: Secure Java Files

    Threads merged.

    These topics have merged back into the same topic, and your attitude indicates that you're not interested in our suggestions.

    Please start a NEW topic when you have a more open mind.

    Thread closed.

Page 2 of 2 FirstFirst 12

Similar Threads

  1. Secure web page content
    By arunkumar.n in forum Web Frameworks
    Replies: 5
    Last Post: January 5th, 2014, 01:52 AM
  2. Replies: 1
    Last Post: October 7th, 2013, 11:36 AM
  3. Java ClassLoader: How to make it secure and stable
    By GavinL in forum Java Theory & Questions
    Replies: 0
    Last Post: November 2nd, 2011, 05:15 AM