Skip to content
Snippets Groups Projects

New: Fast Deployment

Merged Benedikt Heinrichs requested to merge Hotfix/xxxx-fastDeployment into master
2 files
+ 50
18
Compare changes
  • Side-by-side
  • Inline
Files
2
+ 18
0
using System.Security.Cryptography;
namespace Coscine.GraphDeployer
{
public static class HashUtil
{
public static string GetFileHash(string path)
{
using (SHA256 sha256 = SHA256.Create())
{
using (FileStream fileStream = File.OpenRead(path))
{
return BitConverter.ToString(sha256.ComputeHash(fileStream));
}
}
}
}
}
Loading