public void Login(string password) { if (string.IsNullOrEmpty(password)) { throw new ArgumentException("Password cannot be null"); } ISecureManager secureManager = ModulesManager.GetSecureManager(); EncryptedPassword = secureManager.EncryptWithAes(password); IsAuthorized = true; }