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