예제 #1
0
 public GameCrypto(byte[] key)
 {
     DHKeySequence = new DHKeyExchange.ServerKeyExchange();
     _blowfish = new BlowfishCryptography(BlowfishAlgorithm.CFB64);
     lock(key)
         _blowfish.SetKey(key);
 }
예제 #2
0
 public GameCrypto(byte[] key)
 {
     DHKeySequence = new DHKeyExchange.ServerKeyExchange();
     _blowfish     = new BlowfishCryptography(BlowfishAlgorithm.CFB64);
     lock (key)
         _blowfish.SetKey(key);
 }