在经典的asp中加密连接字符串 [英] Encrypting connection string in classic asp

查看:158
本文介绍了在经典的asp中加密连接字符串的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以存储加密的连接字符串,以便可以从服务器端的vbscript使用?
好的旧日子中有相当于web.config的值吗?

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

推荐答案

ol记忆库...

我记得在传统的ASP系统中,我们将连接字符串(和大多数其他配置设置)放在Windows注册表中, Web应用程序的自定义注册表项。我们将使用COM DLL来读取设置。

I recall that in classic ASP systems, we would put the connection string (and most other config settings) in the Windows registry, in a custom registry key for the web app. We'd use a COM DLL to read the settings.

您可以对存储在注册表中的连接字符串进行加密,但是您必须将自己的加密/解密。

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

所以答案是肯定的,这绝对是可以的,但是框架内没有一个简单的工具来加密/解密,你必须做它自己。

So the answer is yes, it is definitely possible, but there is no easy tooling built into the framework to encrypt/decrypt on the fly, you have to do it yourself.

这篇关于在经典的asp中加密连接字符串的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆