Thread: How to...

Results 1 to 5 of 5
  1. #1 How to... 
    Registered Member
    aivaroza4's Avatar
    Join Date
    Apr 2011
    Age
    27
    Posts
    132
    Thanks given
    57
    Thanks received
    3
    Rep Power
    79
    .... Make that in characters shows real people password,not hidden?

    LITHUANIA
    Reply With Quote  
     

  2. #2  
    Registered Member
    Addiction's Avatar
    Join Date
    Mar 2011
    Posts
    954
    Thanks given
    1,875
    Thanks received
    136
    Rep Power
    311
    Why do you need this...?
    Reply With Quote  
     

  3. #3  
    Registered Member
    aivaroza4's Avatar
    Join Date
    Apr 2011
    Age
    27
    Posts
    132
    Thanks given
    57
    Thanks received
    3
    Rep Power
    79
    Quote Originally Posted by Fear View Post
    Why do you need this...?
    Thats was more easy for me.
    LITHUANIA
    Reply With Quote  
     

  4. #4  
    Rangezpwnz75
    Join Date
    Jan 2012
    Age
    25
    Posts
    112
    Thanks given
    2
    Thanks received
    11
    Rep Power
    53
    Quote Originally Posted by aivaroza4 View Post
    .... Make that in characters shows real people password,not hidden?

    You Can't Change a Encrypted Password to a Original User Account password
    & Why would you want to do this ?
    Reply With Quote  
     

  5. #5  
    Fuck the rest join the best, WoR
    Jinx's Avatar
    Join Date
    Oct 2010
    Posts
    635
    Thanks given
    99
    Thanks received
    65
    Rep Power
    364
    The reason that this password is being displayed rather then the actually password is because your server is currently telling it to save the encrypted password rather than the real password.

    Code:
    playerPass = Misc.basicEncrypt(playerPass);
    Personally, this is how I choose to save my players passwords in their character files. The reason that this is the preferred way to save their passwords is simply because if someone so happens to get access to these files, they won't be able to get on the players accounts. Now, the way that you decide to save your characters passwords is totally up to you, but I really would recommend leaving it as it is.

    Anyway, if you would like to change the way the the files save the passwords, I have provided you with what you need to change in order to do so.

    PlayerSave.java
    src > server > model > players > PlayerSave.java

    Search:
    Code:
    playerPass = Misc.basicEncrypt(playerPass);
    Once you have found that, you should see something that looks like:
    Code:
    if (playerPass.equalsIgnoreCase(token2) || Misc.basicEncrypt(playerPass).equals(token2))
    	playerPass = Misc.basicEncrypt(playerPass);
    That is what is causing your passwords to save in an encrypted format. It is actually quite simple to change the way that it saves. Simply replace the playerPass variable with:
    Code:
    playerPass = token2;
    Now, make sure that the if statement remains the same. Once you remove the encrypted part within the if statement, all of your current player files that are saved with encrypted passwords, the real password will become what used to be the encrypted version.

    So in the end, your method should look like:
    Code:
    if (playerPass.equalsIgnoreCase(token2) || Misc.basicEncrypt(playerPass).equals(token2))
    	playerPass = token2;
    The wor has begun.


    Reply With Quote  
     

  6. Thankful user:



Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •