public User Create(string username, string password, Enums.UserType userType) { AuditableCreate(); Email = username; Password = Encyption.Encrypt(password); UserType = userType; RecordStatus = Enums.RecordState.Active; return(this); }
// Use this for initialization void Start() { #if UNITY_EDITOR if (remove_wallet_) { Debug.Log("remove wallet data. this is unrecoverable."); PlayerPrefs.SetString(KEY_PREFIX + "_key_store", ""); } chain_url_ = chain_url_.EvalBackTick(); #else encyption_ = false; #endif Encyption e = (Encyption)PlayerPrefs.GetInt( KEY_PREFIX + "_key_store_encyption", (int)Encyption.Unknown); if (e != Encyption.Unknown) { encyption_ = (e == Encyption.On); } Main.FiberMgr.Start(StartWorker); }
public bool Validate(string password) { return(Encyption.Encrypt(password) != Password ? false : true); }