skip to Main Content

how to implement Gzip compressor for one endpoint in .NET core – Asp.net

I have a .NET core project (EntityRelationship) and enable the Gzip compressor for that project. Program.cs using EntityRelationship.Data; using Microsoft.AspNetCore.ResponseCompression; using Microsoft.EntityFrameworkCore; using System.IO.Compression; var builder = WebApplication.CreateBuilder(args); // Add services to the container. ... builder.Services.AddResponseCompression(options => { options.EnableForHttps =…

VIEW QUESTION

Can't load generated public key from NodeJS into Windows via CNG APIs – Javascript

I generate RSA public/private key pairs in NodeJS using crypto library: crypto.generateKeyPair( "rsa", { modulusLength: 1024, publicKeyEncoding: { type: "pkcs1", format: "pem", }, privateKeyEncoding: { type: "pkcs1", format: "pem", }, }, (err, publicKey, privateKey) => { fs.writeFileSync("/home/dev/priv.pem", privateKey); fs.writeFileSync("/home/dev/pub.pem", publicKey);…

VIEW QUESTION
Back To Top
Search