How to encrypt connection strings in Asp.Net web applications

preview_player
Показать описание

Command to encrypt : aspnet_regiis -pe "connectionStrings" -app "/NewTestApplication" -prov "RsaProtectedConfigurationProvider"

where -pe defines the section which needs to be encrypt -app is the virtual directory -prov defines the algorithm in the form of provider name.

Credit :
Music : YouTube audio library
Technology : Microsoft
Рекомендации по теме
Комментарии
Автор

Nice video, but how can I get it to work with appsettings.json? Thanks!

tonythescientist
Автор

Thanks for the video. This is in development environment, you can just publish this on a webhosting server ?

renatoloefstop
Автор

What about if you need to make changes to the connection string? Also, will it still work after i re-publish the application to the server?

philmingo