using System; using FrostFS.SDK.Cryptography; namespace FrostFS.SDK; public class CheckSum { private byte[]? hash; private string? text; public static CheckSum CreateCheckSum(byte[] content) { return new CheckSum { hash = DataHasher.Sha256(content.AsSpan()) }; } public override string ToString() { return text ??= BitConverter.ToString(hash).Replace("-", ""); } }