0

I'm working on asp.net project I have to encrypt credential in web.config file

<add name="ConnectionString"
     connectionString="Data Source=sqlexpress;
                       Initial Catalog=Employee;
                       User ID=testUser;
                       Password=testPassword"
     providerName="System.Data.SqlClient"/>
1

1 Answer 1

1

You can use aspnet_regiis to do this.

As an example:

aspnet_regiis -pe "connectionStrings" -app "/SampleApplication" -prov "RsaProtectedConfigurationProvider"

Encrypting and Decrypting Configuration Sections

Sign up to request clarification or add additional context in comments.

2 Comments

@BuddhikaSamith no probs. 😄
what happen when some one used this command. Any suggestions? aspnet_regiis -pd "connectionStrings" -app "/SampleApplication" -prov "RsaProtectedConfigurationProvider"

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.