private static byte[] createHash(String text) {
        try {
            return MessageDigest.getInstance("SHA-256").digest(text.getBytes(Charset.forName("UTF-8")));
        } catch (java.security.NoSuchAlgorithmException ex) { 
            System.out.println(ex.getMessage());
            return null;
        }
    }