20 references to HashData
Aspire.Hosting (2)
DistributedApplicationBuilder.cs (2)
183var appHostNameShaBytes = SHA256.HashData(Encoding.UTF8.GetBytes(appHostName)); 188var appHostShaBytes = SHA256.HashData(Encoding.UTF8.GetBytes(AppHostPath));
Microsoft.AspNetCore.Antiforgery (1)
Internal\AntiforgeryOptionsSetup.cs (1)
34byte[] fullHash = SHA256.HashData(Encoding.UTF8.GetBytes(applicationId));
Microsoft.AspNetCore.Authentication.MicrosoftAccount (1)
MicrosoftAccountHandler.cs (1)
88var challengeBytes = SHA256.HashData(Encoding.UTF8.GetBytes(codeVerifier));
Microsoft.AspNetCore.Authentication.OAuth (1)
OAuthHandler.cs (1)
322var challengeBytes = SHA256.HashData(Encoding.UTF8.GetBytes(codeVerifier));
Microsoft.AspNetCore.Authentication.OpenIdConnect (1)
OpenIdConnectHandler.cs (1)
420var challengeBytes = SHA256.HashData(Encoding.UTF8.GetBytes(codeVerifier));
Microsoft.AspNetCore.Http.Connections.Tests (2)
HttpConnectionDispatcherTests.cs (2)
3194SymmetricSecurityKey SecurityKey = new SymmetricSecurityKey(SHA256.HashData(Guid.NewGuid().ToByteArray())); 3356var SecurityKey = new SymmetricSecurityKey(SHA256.HashData(Guid.NewGuid().ToByteArray()));
Microsoft.AspNetCore.Mvc.TagHelpers (1)
Cache\CacheTagKey.cs (1)
181var hashedBytes = SHA256.HashData(contentBytes);
Microsoft.AspNetCore.Mvc.Views.TestCommon (1)
TestRazorCompiledItem.cs (1)
55var bytes = SHA256.HashData(Encoding.UTF8.GetBytes(content));
Microsoft.AspNetCore.SignalR.Client.FunctionalTests (1)
Startup.cs (1)
27private readonly SymmetricSecurityKey SecurityKey = new SymmetricSecurityKey(SHA256.HashData(Guid.NewGuid().ToByteArray()));
Microsoft.AspNetCore.SignalR.Tests (1)
Startup.cs (1)
24private readonly SymmetricSecurityKey SecurityKey = new SymmetricSecurityKey(SHA256.HashData(Guid.NewGuid().ToByteArray()));
Microsoft.AspNetCore.StaticAssets.Tests (1)
StaticAssetsIntegrationTests.cs (1)
561var hash = SHA256.HashData(Encoding.UTF8.GetBytes(content));
SignalR.Client.FunctionalTestApp (1)
Startup.cs (1)
25private readonly SymmetricSecurityKey SecurityKey = new SymmetricSecurityKey(SHA256.HashData(Guid.NewGuid().ToByteArray()));
System.Drawing.Common.Tests (4)
mono\System.Drawing\BitmapTests.cs (4)
389hash = SHA256.HashData(pixels); 434byte[] hash = SHA256.HashData(pixel_data); 497return SHA256.HashData(pixels); 543return SHA256.HashData(pixels);
WebTransportInteractiveSampleApp (1)
Program.cs (1)
18var hash = SHA256.HashData(certificate.RawData);
WebTransportSampleApp (1)
Program.cs (1)
88var hash = SHA256.HashData(cert.RawData);