Software Engineering “im WiSe18"
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Credentials.java 662B

5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. import assets.Helpers;
  2. public class Credentials {
  3. String login;
  4. String hash;
  5. Credentials(String lg, String pw){
  6. login = lg;
  7. hash = pw;
  8. }
  9. public boolean valid(){
  10. String[] lines = Helpers.readTextdatei("src/assets/passwd");
  11. String tmp = "";
  12. String name = "";
  13. String pw = "";
  14. for(int i=0; i<lines.length; i++) {
  15. if(i % 2 == 0){
  16. name = lines[i];
  17. System.out.println( "NAME: " + name);
  18. }else {
  19. pw= lines[i];
  20. System.out.println(pw);
  21. }
  22. }
  23. return false;
  24. }
  25. }