예제 #1
0
        public static bool TryGetHashedFile(string Hash, out HashedFiles HashedFile)
        {
            HashedFile = default(HashedFiles);

            foreach (HashedFiles fileInfo in Hashes.Where(x => x.Hash == Hash))
            {
                HashedFile = fileInfo;
                return true;
            }

            return false;
        }
예제 #2
0
 public static bool IsHashedFileValid(HashedFiles hash)
 {
     return hash.Hash == HashBytes(ASCIIEncoding.ASCII.GetBytes(hash.AssemblyPath));
 }