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

Hash

public sealed class Hash : EvidenceBase, ISerializable
Provides evidence about the hash value for an assembly. This class cannot be inherited.
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; } public void GetObjectData(SerializationInfo info, StreamingContext context) { throw new PlatformNotSupportedException(); } public override string ToString() { return base.ToString(); } } }