<PackageReference Include="System.Security.Permissions" Version="10.0.0-preview.7.25380.108" />

Hash

public sealed class Hash : EvidenceBase, ISerializable
Provides evidence about the hash value for an assembly. This class cannot be inherited.
using System.ComponentModel; using System.Reflection; using System.Runtime.Serialization; using System.Security.Cryptography; namespace System.Security.Policy { public sealed class Hash : EvidenceBase, ISerializable { public byte[] MD5 => null; public byte[] SHA1 => null; public byte[] SHA256 => null; public Hash(Assembly assembly) { } public static Hash CreateMD5(byte[] md5) { return null; } public static Hash CreateSHA1(byte[] sha1) { return null; } public static Hash CreateSHA256(byte[] sha256) { return null; } public byte[] GenerateHash(HashAlgorithm hashAlg) { return null; } [Obsolete("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId = "SYSLIB0051", UrlFormat = "https://aka.ms/dotnet-warnings/{0}")] [EditorBrowsable(EditorBrowsableState.Never)] public void GetObjectData(SerializationInfo info, StreamingContext context) { throw new PlatformNotSupportedException(); } public override string ToString() { return base.ToString(); } } }