games.strategy.util
Class ClientPasswodScrambler

java.lang.Object
  extended by games.strategy.util.ClientPasswodScrambler

public class ClientPasswodScrambler
extends java.lang.Object


Constructor Summary
ClientPasswodScrambler()
           
 
Method Summary
static void main(java.lang.String[] args)
           
static java.lang.String scramble(java.lang.String password)
          Technically this is not correct.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClientPasswodScrambler

public ClientPasswodScrambler()
Method Detail

scramble

public static java.lang.String scramble(java.lang.String password)
Technically this is not correct. We should encrypt the password on the server using a random salt generated on the server. But to avoid sending the password over the network as plain text, encrypt it here. All we are really doing is not sending the password over the network in plaintext, but if this string is captured, then it could be used to log in, just as well as the original password.


main

public static void main(java.lang.String[] args)