Tag archives for Compute HASH

How to compute SHA256 File HASH using C#

hello i want to share with you a simple way of computing SHA256 HASH using C#. Enjoy using (FileStream stream = File.OpenRead(file)) { SHA256Managed sha = new SHA256Managed(); byte[] hash = sha.ComputeHash(stream); return BitConverter.ToString(hash).Replace(“-“, String.Empty); }

Posted in Programming | Leave a comment

Swedish Greys - a WordPress theme from Nordic Themepark.