Пример #1
0
                private uint[] CreateKey(byte[] password)
                {
                    var hash = md5computer.ComputeHash(password);
                    var key  = BlockPool.Rent(4);

                    key[0] = (uint)Math.Abs(FastBitConverter.GetInt32UnsafeFastest(hash, 0));
                    key[1] = (uint)Math.Abs(FastBitConverter.GetInt32UnsafeFastest(hash, 4));
                    key[2] = (uint)Math.Abs(FastBitConverter.GetInt32UnsafeFastest(hash, 8));
                    key[3] = (uint)Math.Abs(FastBitConverter.GetInt32UnsafeFastest(hash, 12));
                    return(key);
                }