When working with asp.net we can encrypt parts of the asp.net console application's app.config file by following these steps:-
1- Rename the app.config to web.config >> run this command >>
ASPNET_REGIIS -pef "<<customAppSettingsGroup>>/<<customAppSettings>>" "C:\projects\MSE\MSE\MSE"
2- Rename the web.config back to app.config....
Now inside asp.net core we do not have app.config
, instead we have the appsettings.json
.. so my question is if we can encrypt parts of the appsettings.json
using the above approach? If the answer is No, then what are the approaches to encrypt sections of the appsettings.json
?
Thanks