Пример #1
0
        public ScryptResult(int iterationCount, int blockSize, int threadCount, byte[] salt, byte[] hash)
        {
            IterationCount = iterationCount;
            BlockSize      = blockSize;
            ThreadCount    = threadCount;
            Salt           = salt;
            Hash           = hash;

            Input = new ScryptInput(iterationCount, blockSize, threadCount, salt);
        }
Пример #2
0
 public static ScryptResult Encode(byte[] password, ScryptInput input)
 {
     return(Encode(password, input.IterationCount, input.BlockSize, input.ThreadCount, input.Salt));
 }