mirror of
https://github.com/2006-Scape/apollo.git
synced 2026-07-03 00:38:21 +00:00
Rename getCryptedPassword to getHashedPassword.
This commit is contained in:
@@ -33,7 +33,7 @@ public final class BinaryPlayerSaver implements PlayerSaver {
|
||||
try (DataOutputStream out = new DataOutputStream(new FileOutputStream(file))) {
|
||||
// write credentials and privileges
|
||||
StreamUtil.writeString(out, player.getUsername());
|
||||
StreamUtil.writeString(out, player.getCredentials().getCryptedPassword());
|
||||
StreamUtil.writeString(out, player.getCredentials().getHashedPassword());
|
||||
out.writeByte(player.getPrivilegeLevel().toInteger());
|
||||
out.writeBoolean(player.isMembers());
|
||||
|
||||
|
||||
@@ -62,10 +62,10 @@ public final class PlayerCredentials {
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the crypted password
|
||||
* Gets the hashed password
|
||||
* @return The password (either the original loaded from file or scrypted)
|
||||
*/
|
||||
public String getCryptedPassword() {
|
||||
public String getHashedPassword() {
|
||||
return password.startsWith("$s0$") ? password : SCryptUtil.scrypt(password, 16384, 8, 1);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user