small fixes
This commit is contained in:
parent
228eec0a79
commit
06a14ae645
2 changed files with 2 additions and 19 deletions
|
@ -3,22 +3,10 @@ package client.gui.element;
|
||||||
import common.util.Util;
|
import common.util.Util;
|
||||||
|
|
||||||
public class PasswordField extends Field {
|
public class PasswordField extends Field {
|
||||||
private byte[] passwordHash;
|
|
||||||
|
|
||||||
public PasswordField(int x, int y, int w, int h, int cap, FieldCallback callback, String text) {
|
public PasswordField(int x, int y, int w, int h, int cap, FieldCallback callback, String text) {
|
||||||
super(x, y, w, h, cap, callback, text);
|
super(x, y, w, h, cap, callback, text);
|
||||||
}
|
}
|
||||||
|
|
||||||
// protected void drawForeground(int x1, int y1, int x2, int y2) {
|
|
||||||
// Drawing.txt_draw(x1 + this.text_x, y1 + this.text_y,
|
|
||||||
// x1 + this.text_x, y1 + this.text_y,
|
|
||||||
// Integer.MAX_VALUE, Integer.MAX_VALUE, this.enabled ? this.gm.style.text_field : Util.mulColor(this.gm.style.text_field, 0.5f), this.text.isEmpty() ? "" : "****");
|
|
||||||
// }
|
|
||||||
|
|
||||||
// protected int getCursorX(int x1, int x2) {
|
|
||||||
// return x1;
|
|
||||||
// }
|
|
||||||
|
|
||||||
protected String getDrawnText() {
|
protected String getDrawnText() {
|
||||||
return Util.repeatString("*", this.text.length());
|
return Util.repeatString("*", this.text.length());
|
||||||
}
|
}
|
||||||
|
@ -26,9 +14,4 @@ public class PasswordField extends Field {
|
||||||
protected boolean canCopy() {
|
protected boolean canCopy() {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void updateText() {
|
|
||||||
super.updateText();
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -136,7 +136,7 @@ public class EncryptUtil {
|
||||||
hash = digest.digest(data);
|
hash = digest.digest(data);
|
||||||
}
|
}
|
||||||
catch(NoSuchAlgorithmException e) {
|
catch(NoSuchAlgorithmException e) {
|
||||||
Log.SYSTEM.error(e, "Konnte Prüfwert nicht berechnen");
|
Log.SYSTEM.error(e, "Konnte Schlüssel-Prüfwert nicht berechnen");
|
||||||
return "<?>";
|
return "<?>";
|
||||||
}
|
}
|
||||||
byte[] xor = new byte[8];
|
byte[] xor = new byte[8];
|
||||||
|
@ -215,7 +215,7 @@ public class EncryptUtil {
|
||||||
return factory.generateSecret(spec).getEncoded();
|
return factory.generateSecret(spec).getEncoded();
|
||||||
}
|
}
|
||||||
catch(NoSuchAlgorithmException | InvalidKeySpecException e) {
|
catch(NoSuchAlgorithmException | InvalidKeySpecException e) {
|
||||||
Log.SYSTEM.error(e, "Konnte Passwort-Prüfwert nicht errechnen");
|
Log.SYSTEM.error(e, "Konnte Passwort-Prüfwert nicht berechnen");
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue