Beispiel #1
0
        protected override void DoStart()
        {
            if (m_Algorithms.Count == 0)
            {
                var md5 = new MD5PasswordHashingAlgorithm(this, "MD5");
                m_Algorithms.Register(md5);
            }

            foreach (var algo in m_Algorithms)
            {
                algo.Start();
            }
        }
Beispiel #2
0
        protected override void DoStart()
        {
            if (m_Algorithms.Count == 0)
            {
                var md5 = new MD5PasswordHashingAlgorithm(this, "MD5");
                m_Algorithms.Register(md5);

                var kdf = new PBKDF2PasswordHashingAlgorithm(this, "KDF");
                m_Algorithms.Register(kdf);

                var nop = new NopPasswordHashingAlgorithm(this, "NOP");
                m_Algorithms.Register(nop);
            }

            foreach (var algo in m_Algorithms)
            {
                algo.Start();
            }
        }