Witam,
mam problem z hashem pliku, gdyż ciągle generuje mi ten sam ciąg.
private string hash_pliku(FileStream fs)
{
SHA256 mySHA256 = SHA256Managed.Create();
byte[] hashValue = mySHA256.ComputeHash(fs);
return ByteToString(hashValue);
}
Jeszcze może dam wywołanie:
FileStream fileStream =new FileStream(tbFilename.Text, FileMode.Open);
hash = hash_pliku(fileStream);
Czy ktoś widzi tu jakiś błąd? :(