If you want to encrypt integer values, then you're going to need to store the result as a string. If you're also going to roundtrip those values from the server to the browser, you'll need this code.
The Developer Exception Page in ASP.NET Core provides detailed information about exceptions. Because developers need detailed information about exceptions, and end users don’t, the ASP.NET Core ...
Some results have been hidden because they may be inaccessible to you
Show inaccessible results