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