Encryption of connection string in classic asp

Is it possible to store an encrypted connection string so that it can be used on the server side of vbscript? Was there the equivalent of web.config in the "good old days"?

+3
source share
2 answers

How do I dust from memory banks ol ...

I remember that on classic ASP systems we put the connection string (and most other configuration settings) in the Windows registry in a custom registry key for a web application. We will use the COM-DLL to read the settings.

You can encrypt the connection string, which is stored in the registry, but you will have to minimize your own encryption / decryption.

So, the answer is yes, it is definitely possible, but there is no need for a simple tool built into the on-the-fly encryption / decryption framework. You have to do it yourself.

+3
source

.Net has all the encryption and decryption code, so the easiest way to encrypt this string is to use the .Net encryption / decryption functions. Create a .Net component that performs the derivation and a COM wrapper designed for COM that needs to register it. Then call it from the ASP page.

+2
source

All Articles