Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 306997
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T07:31:05+00:00 2026-05-12T07:31:05+00:00

My project for this summer is to make a multiplayer online flash game. I

  • 0

My project for this summer is to make a multiplayer online flash game. I could use some advice as I’ve never implemented a secure login system before, let alone done so in Actionscript.

My setup right now is a .swf sending/receiving game data to/from a Java server which communicates with a MySQL database about account info.

1) How should I proceed in general? I was thinking that maybe I should have my .swf encrypt the password, send it, (have my server encrypt it again?), then store it in the database.

2) I’m sure I can find plenty of guides to encryption in Java. Can anyone recommend an Actionscript library, or even just a general encryption algorithm (so I could search for an AS equivalent myself) which would be acceptable for this task?

Also, my game is communicating via an XMLSocket. I don’t think this should cause any security issues but please let me know if I’m mistaken.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T07:31:06+00:00Added an answer on May 12, 2026 at 7:31 am

    A generally excepted way of sending password is to not actually send them at all, as this is considered highly insecure. Instead as you’ve mention you send a different form of them such as the hashed password, althought this still has some draw backs – i.e. rainbow tables etc.

    Therefore the best approach is to hash the password with a nonce (number only used once) i.e. a random string and a timestamp and send that instead. I would then send the hashed string, the nonce and the timestamp in an xml format to your db server who could then try and reproduce the hashed password using the password you have stored for the user.

    This is how the W3C usernameToken spec do it. see – http://docs.oasis-open.org/wss/v1.1/wss-v1.1-spec-os-UsernameTokenProfile.pdf

    <UsernameToken xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wsswssecurity-utility-1.0.xsd">
      <Username>jon</wsse:Username>
       <Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordDigest">9JSGeXj+zpvEp42I20K/1bg8rCE=</Password>
       <Nonce>TaF3g5F37wSHtSdY</Nonce>
       <Created>2009-07-25T10:29:34Z</:Created>
    </UsernameToken>
    

    However, this may introduce unwanted complexity.

    So you could simply just hash the password and send it to the server who would then hash its version of the password and if it matched your away. Although at the end of the day, you have to ask your self how secure is the actual .swf file becuase you can decompile them and just jump over the original login anyway. However, for this most part this will be sufficient.

    To hash stings i usually use as3crypto (code.google.com/p/as3crypto/) – but I know the abode utils package has a md5 and sha-1 implementation.

    As for the xml socket this will be fine as long as you have a cross-site-policy file in the action script app that allows it to talk to that domain and one on the domain that allows flash to talk to it. otherwise you may get security errors.

    Hope this helps.

    Jon

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

As my project to do over this summer I would like to create a
I'm doing some Delphi (2010) work this summer, and I've stumbled upon this problem:
I am developing a web application for my university project this summer and I
I'm trying to put together a small(ish) summer school project for some of my
This project is the probable first step in migrating a large CMS from Classic
This project started as a development platform because i wanted to be able to
On this project I am working on right now, one of the newest feature
I got this project, where there this error keeps occurring and its not on
Why isn't this project maintained anymore? I love this app, however not updating it
Im just starting a project and since this project is personal I was wondering

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.