Esempio n. 1
0
 /**
  * @param blowfishKey
  */
 public NewCrypt(byte[] blowfishKey)
 {
     _crypt = new BlowfishEngine();
     _crypt.init(true, blowfishKey);
     _decrypt = new BlowfishEngine();
     _decrypt.init(false, blowfishKey);
 }
Esempio n. 2
0
 public NewCrypt(string key)
 {
     byte[] blowfishKey = Encoding.UTF8.GetBytes(key);
     _crypt = new BlowfishEngine();
     _crypt.init(true, blowfishKey);
     _decrypt = new BlowfishEngine();
     _decrypt.init(false, blowfishKey);
 }