your passwords are encrypted. You must remove the encryption, not recommended, in order to view the passwords.
|
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;
your passwords are encrypted. You must remove the encryption, not recommended, in order to view the passwords.
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.
I want to view the passwords, what do I remove? https://www.dropbox.com/s/tw3b0itpf6wbu4y/Player.java <-- Player.java
Bump still need help
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;
Remove thisCode:password = Encrypt.encryptSHA1(password);
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |