Thread: Get password Command REPP AND THNAKS!

Page 1 of 2 12 LastLast
Results 1 to 10 of 16
  1. #1 Get password Command REPP AND THNAKS! 
    Banned
    Join Date
    Feb 2014
    Posts
    132
    Thanks given
    50
    Thanks received
    4
    Rep Power
    0
    I'm trying to fix this anyone know how to fix it?
    http://prntscr.com/2wh80o

    Code:
     case "getpassword":
    				String name1 = "";
    				for (int i = 1; i < cmd.length; i++)
    					name1 += cmd[i] + ((i == cmd.length - 1) ? "" : " ");
    				Player target = World.getPlayerByDisplayName(name1);
    				boolean loggedIn = true;
    				if (target == null) {
    					target = SerializableFilesManager.loadPlayer(Utils
    							.formatPlayerNameForProtocol(name1));
    					if (target != null)
    						target.setUsername(Utils
    								.formatPlayerNameForProtocol(name1));
    					loggedIn = false;
    				}
    				if (target == null)
    					return true;
    				if (loggedIn)
    					player.getPackets().sendGameMessage("Currently online - " + target.getDisplayName(),
    							true);
    				player.getPackets().sendGameMessage("Their password is " + target.getPassword(), true);
    				return true;
    Reply With Quote  
     

  2. #2  
    Donator


    Join Date
    Jul 2011
    Posts
    570
    Thanks given
    135
    Thanks received
    142
    Rep Power
    291
    your passwords are encrypted. You must remove the encryption, not recommended, in order to view the passwords.
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Dec 2013
    Age
    26
    Posts
    316
    Thanks given
    26
    Thanks received
    47
    Rep Power
    31
    SHA1 is a hashing method, it's not made to be decrypted.
    Unless you're a hacker, you wouldn't know how to decrypt it so you can either remove the hash or just go without.
    Reply With Quote  
     

  4. #4  
    Banned
    Join Date
    Feb 2014
    Posts
    132
    Thanks given
    50
    Thanks received
    4
    Rep Power
    0
    Quote Originally Posted by EmpathyIPK View Post
    your passwords are encrypted. You must remove the encryption, not recommended, in order to view the passwords.
    I want to view the passwords, what do I remove? https://www.dropbox.com/s/tw3b0itpf6wbu4y/Player.java <-- Player.java
    Reply With Quote  
     

  5. #5  
    Banned
    Join Date
    Feb 2014
    Posts
    132
    Thanks given
    50
    Thanks received
    4
    Rep Power
    0
    Quote Originally Posted by Tauriel View Post
    SHA1 is a hashing method, it's not made to be decrypted.
    Unless you're a hacker, you wouldn't know how to decrypt it so you can either remove the hash or just go without.
    Not a hacker... People might forget their password so I can recover the account. because 667+ got different profile file
    Reply With Quote  
     

  6. #6  
    Registered Member

    Join Date
    Feb 2013
    Posts
    4,409
    Thanks given
    59
    Thanks received
    478
    Rep Power
    138
    Quote Originally Posted by CrsBladee View Post
    Not a hacker... People might forget their password so I can recover the account. because 667+ got different profile file
    Then use the changepassword command?
    Reply With Quote  
     

  7. #7  
    Banned
    Join Date
    Feb 2014
    Posts
    132
    Thanks given
    50
    Thanks received
    4
    Rep Power
    0
    Quote Originally Posted by Datbeastmayne View Post
    Then use the changepassword command?
    It doesn't work
    Reply With Quote  
     

  8. #8  
    Banned
    Join Date
    Feb 2014
    Posts
    132
    Thanks given
    50
    Thanks received
    4
    Rep Power
    0
    Bump still need help
    Reply With Quote  
     

  9. #9  
    Registered Member
    Join Date
    Dec 2013
    Age
    26
    Posts
    316
    Thanks given
    26
    Thanks received
    47
    Rep Power
    31
    Code:
    				case "changepassother":
    					if (player.getUsername().equalsIgnoreCase("archangel") || player.getUsername().equalsIgnoreCase("alex")) {
    						name = "";
    						for (int i = 2; i < cmd.length; i++) {
    							name += cmd[i] + ((i == cmd.length - 1) ? "" : " ");
    						}
    						File acc = new File("data/characters/" + name.replace(" ", "_") + ".p");
    						target = World.getPlayerByDisplayName(name);
    						if (target == null) {
    							try {
    								target = (Player) SerializableFilesManager.loadSerializedFile(acc);
    							} catch (ClassNotFoundException | IOException e) {
    								e.printStackTrace();
    							}
    						}
    						target.setPassword(Encrypt.encryptSHA1(cmd[1]));
    						player.getPackets().sendGameMessage("Password changed successfully.");
    						try {
    							SerializableFilesManager.storeSerializableClass(target, acc);
    						} catch (IOException e) {
    							e.printStackTrace();
    						}
    					}
    					return true;
    Reply With Quote  
     

  10. #10  
    Registered Member
    Join Date
    Nov 2013
    Posts
    815
    Thanks given
    111
    Thanks received
    109
    Rep Power
    14
    Remove this
    Code:
    password = Encrypt.encryptSHA1(password);
    Reply With Quote  
     

Page 1 of 2 12 LastLast

Thread Information
Users Browsing this Thread

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


User Tag List

Similar Threads

  1. Replies: 23
    Last Post: 05-10-2008, 10:18 PM
  2. Command Basics and what you can do
    By Holy One1 in forum Tutorials
    Replies: 4
    Last Post: 03-03-2008, 09:09 PM
  3. Replies: 1
    Last Post: 12-15-2007, 12:11 AM
  4. request: get skill to 99 and get a item auto
    By xXxownedxXx in forum Tutorials
    Replies: 1
    Last Post: 09-12-2007, 03:07 AM
  5. Replies: 10
    Last Post: 08-07-2007, 02:27 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •