public bool Equals(IPassword other) { return(ClientId.Equals(other.ClientId) && Sha1Text == other.Sha1Text); }
public Password(Guid guid, IPAddress ip, SecureString pass, AdminLevel level) { this.clientid = new ClientId(guid, ip); this.level = level; this.sha1text = CreateSha1Text(pass); }
public Password(Record record, AdminLevel level, SecureString pass) { this.clientid = record.ClientId; this.level = level; this.sha1text = CreateSha1Text(pass); }
public Password(Guid guid, IPAddress ip, string sha1text, AdminLevel level) { this.clientid = new ClientId(guid, ip); this.level = level; this.sha1text = sha1text; }
public Password(IClient client, string text) { this.clientid = new ClientId(client); this.level = client.Admin; this.sha1text = CreateSha1Text(text); }