MachineKey.Protect() equivalent in ASP.NET Core
the new dataprotection api is what you are looking for https://docs.microsoft.com/en-us/aspnet/core/security/data-protection/
the new dataprotection api is what you are looking for https://docs.microsoft.com/en-us/aspnet/core/security/data-protection/