Esempio n. 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 L2jBlowfishEngine();
            _crypt.Init(true, blowfishKey);
            _decrypt = new L2jBlowfishEngine();
            _decrypt.Init(false, blowfishKey);
        }
Esempio n. 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 L2jBlowfishEngine();
            _crypt.Init(true, blowfishKey);
            _decrypt = new L2jBlowfishEngine();
            _decrypt.Init(false, blowfishKey);
        }