Browse Source

Merge remote-tracking branch 'origin/master'

master
blckxsepia 6 years ago
parent
commit
558fecdac3
2 changed files with 42 additions and 1 deletions
  1. 41
    1
      src/Credentials.java
  2. 1
    0
      src/assets/Helpers.java

+ 41
- 1
src/Credentials.java View File

@@ -1,7 +1,47 @@
import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;
import java.util.ArrayList;


public class Credentials {
public static void main{

String login;
String hash;

Credentials(String lg, String pw){

login = lg;
hash = pw;

}


public boolean valid(){

/* String line;
ArrayList<String> result = new ArrayList<String>();
try {
FileReader fr = new FileReader(passwd.txt);
BufferedReader br = new BufferedReader(fr);
while ((line = br.readLine()) != null)
result.add(line);
br.close();
}
catch (IOException e) {
e.printStackTrace();
}
return result.toArray(new String[]{});
*/

return false;




}



}


+ 1
- 0
src/assets/Helpers.java View File

@@ -27,6 +27,7 @@ public class Helpers {

// Schreiben eines Stringarray in eine Textdatei
public static void writeTextdatei(String name, String[] lines) {

try {
FileWriter fw = new FileWriter(name);
BufferedWriter bw = new BufferedWriter(fw);

Loading…
Cancel
Save