Example #1
0
        /**
         * @param blowfishKey
         */
        public NewCrypt(byte[] blowfishKey)
        {
            /* _crypt = new BlowfishEngine();
             _crypt.Init(true, new KeyParameter(blowfishKey));
             _decrypt = new BlowfishEngine();
             _decrypt.Init(false, new KeyParameter(blowfishKey));*/

            _crypt = new BlowfishEngine();
            _crypt.Init(true, blowfishKey);
            _decrypt = new BlowfishEngine();
            _decrypt.Init(false, blowfishKey);
        }
Example #2
0
        /**
         * @param blowfishKey
         */
        public NewCrypt(byte[] blowfishKey)
        {
            /* _crypt = new BlowfishEngine();
             * _crypt.Init(true, new KeyParameter(blowfishKey));
             * _decrypt = new BlowfishEngine();
             * _decrypt.Init(false, new KeyParameter(blowfishKey));*/

            _crypt = new BlowfishEngine();
            _crypt.Init(true, blowfishKey);
            _decrypt = new BlowfishEngine();
            _decrypt.Init(false, blowfishKey);
        }