0

I have a B.dll, I want to create APP_A and reference B.dll.

B.dll contains XXEntities. If the APP_A needs to use B.dll, the app.config must add a connection string named XXEntities.

enter image description here

I want to hide the connection strings in app.config.

Attention : B.dll can't be changed

marc_s
  • 732,580
  • 175
  • 1,330
  • 1,459
  • 2
    [Encrypt connection string in EF](https://stackoverflow.com/questions/8760048/encrypt-connectionstring-in-entity-framework-first-code) – CodingYoshi Aug 29 '17 at 03:45

1 Answers1

0

Best way would be to encrypt the connection string in app/web.config. This is the standard way for .NET application to hide some sensitive information from the client to expose via configuration.

Check this link

It is also machine specific encryption which will provide more security.

Tanjeer
  • 89
  • 4