How do you prevent hackers from spoofing a user?

Hello,
I want to write a free P2P gaming network similar to Battle.net.
One thing I've run across is that one person can snoop someone else's user string, and then post as that user.
When two people have the same user id, they can dopplegang the other person, messing their game up.
How do I prevent this?
,James
private function sendMessage():void{
var message:Object = new Object();
message.sender = netGroup.convertPeerIDToGroupAddress(nc.nearID);
message.user = txtUser.text;
message.text = txtMessage.text;
netGroup.post(message);
receiveMessage(message);
txtMessage.text = "";
private function receiveMessage(message:Object):void{
write(message.user+": "+message.text);
As you can see in my code, the only thing you get/give is message.user as far as ID, and anyone can spoof this that can decompile the software.

Battle.net is a client-server architecture.
If you really want to do secure messaging in a p2p mesh I guess you'll need to somehow cryptographically sign every message and have the receiving end filter unproperly signed ones. A server would securely distribute signing private keys to legit users of the system only.

Similar Messages

  • How do you prevent iPads from syncing with iTunes when managing a cart with Apple Configurator

    I am managing carts of iPads with Configurator running on a MacBook. If I open iTunes when Configurator is not open, all 30 iPads will start Syncing with iTunes. Preferences>>Devices>>Prevent Devices from Automatically Syncing is set but yet any time iTunes is opened the iPads start syncing. This does not happen if Configurator is open.

    I was able to finally stop ITunes from crashing after many days of searching n restarting my computer many times.
    a) First I went to this site ->http://forums.techarena.in/guides-tutorials/1119812.htm that showed me how to disable DPE. Please make sure that u have good virus...etc.. protection first before doing this. I have Avast Internet Security. RESTART UR COMPUTER..
    b) I then uninstall ITunes by following this site ->http://support.apple.com/kb/ht1923      RESTART UR COMPUTER..
    c) I then downloaded a beta version of ITunes. I happen to download beta 7 before the final of 10.5 version came out. Installed it. After installing I click on it n it said somewhere along the line of "this ITune ver. expired" I checked in my Programs n Features n notice that QuickTime was installed w that beta version.   
    d) Go online n download the final version of ITunes ->http://www.apple.com/itunes/download/ ...... After u finish dling install that. After that's done connect your IPod, IPhone...etc... n click on ITunes, it should sync all the way.
    I was finally able to sync all thru the steps insteading of it crashing on me midway. Hopefully this will work for you. Good luck !
    IPhone4, Gateway Windows Vista 32bit

  • If you have multiple devices on the find my iphone how do you prevent someone from accessing those other devices if your device is stolen

    I have set up the find my iphone app to be hooked up to my phone, computer, ipod and my family's devices. Thru the find my iphone app you can delete the hard drive of any device to keep a theif from getting your personal information. But lets say my phone is stolen, is there a way of preventing the person who stolen my phone from being able to delete the information on my computer?

    Welcome to the Apple Community.
    Your device should have it's screenlock enabled so that this can't happen, but if you haven't set a screenlock, then yes someone could do this.

  • HT1338 how can i prevent hackers from accessing my computer?

    I need to find out how to work on keeping my computer secure from hackers- are there any thoughts out there on how I can do this? Thanks

    How would a hacker gain access to your computer other than sitting in your chair or looking over your shoulder?

  • How do you prevent screen from dimming while on power adapter?

    I don't want the screen to dim while I'm connected to the power adapter. In the Energy Saver module, it is optimized for better performance, which sets the following parameters:
    -set to sleep when inactive (never)
    -put the display to sleep when computer inactive for 30 minutes
    Nevertheless, after periods of inactivity, the screen will dim (not sleep). I can't seem to stop it from doing so. Any suggestions?
    YoungTurk

    There are two things that will dim the screen - the Energy Saver and the Ambient Light Sensor.
    In the Enerygy Saver panel select "Options" and then there is a check box that you need to uncheck. Since it is one the Options screen you may have missed it.
    With respect to the Ambient Light Sensor, I think it should remember your settings once you set a brightness.

  • How do you prevent songs from playing on iphone (iOS7)?

    My iphone keeps playing music that's not on it. I have albums with songs that I don't wish to hear and didn't download when I purchased them. Some have never been on my Mac. I also have Christmas music that I don't want to hear unless it's December. But my phone keeps shuffling these songs up. Or the interviews that come with some albums… it's relentless.
    When I tap on the listing button, it indicates which song on the album is playing and in the cases I have looked at, has the cloud download button beside it.
    What I'd like to know is how to keep these songs in their boxes until I want to hear them. Any ideas? For what it's worth, I don't understand how this bug/feature exists. I don't want to see this music, let alone listen to it (and be forced to stop what I'm doing to skip the track).
    Thanks,
    Ken

    Thanks. That worked. I already had the automatic download settings off but didn't know about the hide songs option. Everything looks better now.
    After doing so, most of the songs vanished but not all. I did a restore on the device and while trying to synch the songs back onto the phone, which took a while to get started (the usage bar in iTunes only showed 'apps' and 'other', lots of 'other', meanwhile, the Music app on the phone indicated that it was empty), I noticed a section in itunes under all the checklists that seemed to be related to manually added songs. It's gone now and I don't really want to try to get it back but it implied that if you manually dragged a song onto the device, the section would auto-generate and the song would show up there. Extra weirdness is that the song is one of those never downloaded songs that's greyed out when looking at the album.
    Anyway, thanks again.
    Ken

  • How do you prevent videos from flipping around?

    I have some vids like ibeer, iwater, etc. since the 2.0 update now when you tilt the phone to simulate drinking the water or beer the video flips upside down?

    Not in iWeb itself.
    You have to edit the *published pages* with a HTML editor of your choice
    http://www.pure-mac.com/webed.html

  • How do you prevent Acrobat PDFMaker from rasterizing vector graphics?

    I am using the "Create PDF" button (provided by the Acrobat PDFMaker in Acrobat X) to create a PDF from a Microsoft Word 2010 document.
    This works fine, except that vector graphics in the Word document appear in the resulting PDF as raster graphics. (That is, when I zoom in, document text outside the graphics appears smooth, but the graphics are blocky; and text inside the graphics that should be retained as text - it's not converted to curves - is just pixels.)
    The original artwork for the vector graphics is in CorelDRAW X6 (sorry, Adobe!).
    I have exported the following files from the original vector drawing in CorelDRAW:
    - EPS (with TIFF preview)
    - Windows metafile (.wmf)
    - Enhanced metafile (.emf)
    I can insert any of these files into Word okay (Insert > Picture), but the resulting PDF always contains a rasterized (bitmapped) version of the vector graphic ("line art").
    From memory, this didn't use to happen in my previous working environment (Acrobat 8 Pro with Word 2003, using artwork exported from CorelDRAW 12).
    How do you prevent Acrobat X PDFMaker from rasterizing vector graphics? Or is Word 2010 (or CorelDRAW X6) somehow to "blame" here?

    Transparency Flattening is being invoked.
    From the Create PDF button, select Properties, what is your setting for Default Settings? Select High Quality Print

  • How do you prevent the organizer from mixing the order of pictures when down loading off the memory card?

    @How do you prevent the organizer from mixing the order of pictures when down loading off the memory card?

    This sounds like you are using Photoshop Elements, and the Photoshop Elements forum would be best at answering that.
    Photoshop Elements
    Gene

  • My question is Itunes related.  How do you prevent a playlist saved in Itunes from alphabetizing the song list created. I wanted to keep the original order, and somehow everything was alphabetized without requesting it.

    My question is Itunes related.  How do you prevent a playlist saved in Itunes from automatically alphabetizing the song list.   I had a specific order of songs that I wanted, and Itunes somehow automatically alphabetized them.  Is there a way to turn that feature off, and/or get them back to the original order?   I also noticed that once a playlist has been created, I cannot manually changed the order of the songs from my desktop..  Any suggestions?

    That's just the sort order. It's displaying the media alphabetically because you have clicked on the NAME column near the top of the iTunes window.
    Click on the little triangle above the column of numbers (usually on the far left side of the main iTunes window) and the media will sort in the order in which you added each item to the playlist.
    You can easily reorder songs within a playlist: Click and HOLD on the song you wish to move, then drag-and-drop it wherever you like.

  • How can you prevent the mac book pro from unexpectedly shutting off and beeping three times repeatedly?

    How can you prevent the mac book pro from unexpectedly shutting off and beeping three times repeatedly?

    The three beeps are an indication of a hardware problem. Power On Self-Test Beep Definition - Part 2 - Apple Support

  • How can you prevent encrypted folders that you created in disc utility from being deleted?

    How can you prevent encrypted folders that you created in disc utility from being deleted?

    bibst wrote:
    How can you prevent encrypted folders that you created in disc utility
    You cannot create encrypted folders in, or encrypt folders with, Disk Utility.
    You can create with Disk Utility encrypted disk images from folders. I assume that's what you mean.
    The proper way to do it is by setting the immutable bit. Read here
    <http://www.thexlab.com/faqs/immutableflags.html>
    about the immutable bits (and the trouble they sometimes create).
    The user immutable bit (uchg) is the same as the Finder lock, as described above by X423424X. It's a weak lock, with only a warning.
    The system immutable bit (schg) is more powerful. Once is set, the item cannot be deleted in Finder (even though Finder will ask for your password and may give you the impression that it can trash it; it will end with an error).
    I set it in Terminal, thus
    $ sudo chflags schg my_encrypted_disk_image
    and unset it also in Terminal
    $ sudo chflags noschg my_encrypted_disk_image
    (Note that, when you unset the system immutable bit, the change won't be reflected immediately in Finder, but the item can be trashed nevertheless.)

  • How do you prevent the computer from shutting down when in sleep mode?

    How do you prevent the computer from shutting down when in sleep mode and plugged in?

    Thanks tjk.
    Those are great suggestions and got me looking in places I had not considered before. Unfortunately, the problem remains. The System Preferences did not have the shut down option activated and there are no parental controls active on the computer.
    Any other suggestions are welcome.
    Brian

  • On a MacBook, in Messages, how do you prevent your IMs from being sent as texts?

    In Messages, how do you prevent your messages from being sent as texts?

    Shootist007 wrote:
    Not sure how and why this type of thing started but it seems every program you install these days likes to start part of itself when the system starts.
    That started with Lion and progresses with the hillside feline. Ever since that pair got a personality disorder and can't make up their mind whether they're computers or phones, the world went to the dogs.  "Always on" paradigm my azz!

  • How do you prevent MS-DOS window from appearing during Runtime.exec()?

    The question below was attached to the answer for Question of the Week No. 21. I'm having the same problem. Does anyone know the answer? Put another way does anyone know how javaw does it?
    Fri Dec 18 09:59:52 PST 1998
    rkarasek
    On Windows NT 4.0, how can I prevent CreateProcess()
    from creating a cmd.exe window when using javaw and
    Runtime.exec()? No such cmd.exe window is created if
    instead I run "java" from the command line.
    I have a C++ server named "foo", and have created
    a Java applcation with Swing GUI named "foo.java".
    This GUI captures configuration information and
    then uses Runtime.exec() to start the C++ app, with
    a socket established between the Java app and C++
    app for later communication.
    This is all working fine, and the Java application
    and GUI working as expected. When I run "java foo"
    from either the NT command shell (cmd.exe) or MKS
    Korn shell (sh.exe) the Java application/GUI starts,
    and when it calls Runtime.exec() my C++ process is
    started as what appears to be a child process of the
    "java" process, that is, no cmd.exe window is created
    during the Runtime.exec("foo.exe") call.
    However, when running the same Java application from
    a shortcut on the desktop via "javaw", when I invoke
    Runtime.exec() a cmd.exe window is created before my
    C++ server is started. While things are running
    ok and my Java app can still communicate with my
    C++ server, is there anyway I can prevent this
    cmd.exe window from being created, and instead, have
    my C++ server run as a child process of javaw (or
    an independent process without a cmd.exe)?

    cmd always opens a dos window - use another console interpreter instead or just call the programm directly.
    i.e.
    Runetime.exec("c:\\myprogram.exe");
    OR
    The following demonstrates executing a command without bringing up a popup. import java.io.*;
    public class Test {
      public static void main (String args[]) throws IOException {
        String[] command = {
          "C:\\winnt\\system32\\cmd.exe", "/y", "/c",
          "dir"};
        Process p = Runtime.getRuntime().exec(command);
        InputStream is = p.getInputStream();
        InputStreamReader isr = new InputStreamReader(is);
        BufferedReader br = new BufferedReader(isr);
        String line;
        while ((line = br.readLine()) != null) {
          System.out.println(line);
    }However....
    According to bug number 4244515 in Sun's Bug Parade (http://developer.java.sun.com/developer/bugParade/bugs/4244515.html), javaw doesn't always work without bringing up new window.

Maybe you are looking for

  • How to add a local printer on Solaris 10

    Well, i really a neuvy in SOlaris 10, i'm just recently intalled, i was tring to install my printer and looks like it isn't too much trouble, but when i tried to print o sorpriese, i couldm't Can anyone help me... The thing is that i have a suspiciou

  • Enabling adobe forms in SAP_NetWeaver_702

    hi...I am using SAP_NetWeaver_702e( mini sap server ),in that i want to configure adobe forms .I am using sap gui application version (SAP_GUI_for_Windows_7.20).please tell me how to configure adobe forms ....?

  • How to programmatically add Allergens & Sensitivities

    We want to ensure that the Allergens (Known to Contain and Does not contain) and Sensitivities (Known to Contain and Does not contain) on the Trade spec match the allergens and sensitivities from the formulation output. How do I programmatically add

  • Pricing is not changed when pricing date is changed at header level.

    Dear Gurus,                        The query is about pricing. When I change the pricing date at header level it is supposed to chnage the pricing at item level also. But it is not happening. In our scenatio there is a ZPR0 price and there is a condi

  • Plannned order in MD04

    Hi All, I have a planned order in MD04 screen for a material .when I chcked the order progress report for the material I did not find any igher level material or the requirements created in MD63. How can I find if this order is created manually or th