static BotIdentifier() { var info = SystemInfo.GetSystemInfoSummary(); var bytes = Encoding.ASCII.GetBytes(info); var md5 = MD5.Create(); var hash = md5.ComputeHash(bytes); Id = new BotIdentifier(hash); PrivateKey = DHKeyExchange.GetPrivateKey(); PublicKey = DHKeyExchange.GetPublicKey(PrivateKey); }
protected bool Equals(BotIdentifier other) { return(Equals(_internal, other._internal)); }