internal PublicChatRoom(CryptoChatAdapter cryptoAdapter, string name, byte[] preSharedKey) { Name = name; _nameBytes = Config.DefaultEncoding.GetBytes(Name); _cryptoAdapter = cryptoAdapter; PreSharedKey = preSharedKey; }
internal PublicChatRoom(CryptoChatAdapter cryptoAdapter, string name, string password) { Name = name; _nameBytes = Config.DefaultEncoding.GetBytes(Name); _cryptoAdapter = cryptoAdapter; PreSharedKey = GeneratePreSharedKey(password); }