title: Computing SHA1 with ASP.NET Core
body: <p>I've got a ASP.NET 5 RC1 (soon to be ASP.NET Core) Web Application project.</p>
  
  <p>It needs to compute SHA1 hashes.</p>
  
  <p>Various <code>SHA1</code> subclasses are available and build under DNX 4.5.1, but there doesn't seem to be any available implementation under DNX Core 5.0.</p>
  
  <p>Do I have to add a reference to bring that code in, or is it simply not available for .NET Core yet?</p>
  
  <p>According to <a href="https://docs.asp.net/en/latest/conceptual-overview/dotnetcore.html" rel="noreferrer">this article</a>:</p>
  
  <blockquote>
    <p>.NET Core consists of a set of libraries, called “CoreFX”, and a small, optimized runtime, called “CoreCLR”.</p>
  </blockquote>
  
  <p>Sure enough, in the CoreFX repo, there are no subclasses of <code>SHA1</code>:</p>
  
  <p><a href="https://github.com/dotnet/corefx/tree/master/src/System.Security.Cryptography.Algorithms/src/System/Security/Cryptography" rel="noreferrer">https://github.com/dotnet/corefx/tree/master/src/System.Security.Cryptography.Algorithms/src/System/Security/Cryptography</a></p>
  
  <p>However in CoreCLR the subclasses are there as you'd expect, within mscorlib:</p>
  
  <p><a href="https://github.com/dotnet/coreclr/tree/43b39a73cbf832ec13ec29ed356cb75834e7a8d7/src/mscorlib/src/System/Security/Cryptography" rel="noreferrer">https://github.com/dotnet/coreclr/tree/43b39a73cbf832ec13ec29ed356cb75834e7a8d7/src/mscorlib/src/System/Security/Cryptography</a></p>
  
  <p>Why is there overlap between coreclr and corefx? Is this mscorlib code not available for .NET Core projects?</p>
  
  <p>The description of the <a href="https://www.nuget.org/packages/System.Security.Cryptography.Algorithms/4.0.0-beta-23516" rel="noreferrer"><code>System.Security.Crytpography.Algorithms</code> package on NuGet</a> says:</p>
  
  <blockquote>
    <p>Provides base types for cryptographic algorithms, including hashing, encryption, and signing operations.</p>
  </blockquote>
  
  <p>Is there another package that includes actual algorithms and not just base classes? Is this something that simply hasn't been ported yet? Is there somewhere you can review the status of APIs and a roadmap, as Mono has?</p>