Started implumenting a GUI for the program.
This commit is contained in:
@@ -1,5 +1,8 @@
|
||||
package me.zacharias.bank;
|
||||
|
||||
import com.google.gson.Gson;
|
||||
import com.google.gson.GsonBuilder;
|
||||
|
||||
import javax.crypto.Cipher;
|
||||
import javax.crypto.SecretKey;
|
||||
import javax.crypto.SecretKeyFactory;
|
||||
@@ -14,6 +17,22 @@ import java.security.SecureRandom;
|
||||
import java.util.Base64;
|
||||
|
||||
public class Utils {
|
||||
|
||||
public static final Gson gson;
|
||||
|
||||
static {
|
||||
GsonBuilder gsonBuilder = new GsonBuilder();
|
||||
//gsonBuilder.registerTypeAdapter(Account.class, new AccountAdapter());
|
||||
|
||||
gson = gsonBuilder.create();
|
||||
|
||||
File users = new File("./users");
|
||||
|
||||
if(!users.exists()) {
|
||||
users.mkdir();
|
||||
}
|
||||
}
|
||||
|
||||
public static String SHA256(String input) {
|
||||
MessageDigest sha256 = null;
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user