Toubi
Toubi

Reputation: 2509

how to encrypt data in configurations file other then web.config using aspnet_regiis

In a MVC project we have a web.config file and multiple config files other then that.

I was able to encrypt connection string in web.config using aspnet_regiis. Can you pleased guide how I can encrypt data in configuration files other then web.config using aspnet_regiis ?

Thanks

Upvotes: 2

Views: 597

Answers (1)

Kev
Kev

Reputation: 119806

You can't encrypt other files. You can only encrypt web.config or, if the -pkm switch is provided, the machine.config file.

Upvotes: 1

Related Questions