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