/**
 * 
 */
package view.vueConnectionPanel;

import tool.security.AES;

/**
 * @author alexis
 *
 */
public class userConnection {
	private static final String cle = "7196212627131220731";
	
	/**
	 * constructor
	 */
	private userConnection() {}
	
	/**
	 * @param user
	 * @param password
	 * @return Boolean - if the login is succesful
	 */
	public static boolean attemptLogin(String user, char[] password){
		try {
			password = AES.encrypt(cle, new String(password)).toCharArray();
			//comparaison should be here
		} catch (Exception e) {
			user = "";
			password = new char[0];
			
			return false;
		}
		return false;
	}
}
