我怎么能混淆的开放源代码开发过程中的数据库认证信息? [英] How can I obfuscate database authentication info during open-source development?

查看:124
本文介绍了我怎么能混淆的开放源代码开发过程中的数据库认证信息?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我工作的一个开放源代码的Web应用程序将从数据库中的认证信息,我想保持处于保密检索和显示数据,但在同一时间,我想任何人能够查看和有助于源$ C ​​$ C。我们的想法是,我们不希望被用于盈利数据库。

I'm working on an open-source web application that will retrieve and display data from a database whose authentication info I would like to keep under wraps, but at the same time, I would like anyone to be able to view and contribute to the source code. The idea is that we don't want the database to be used for profit.

有没有一种方法,使数据库架构公众开放,但只有每个表实际上可见生产服务器之外的几行?我使用ASP.NET MVC 4在Visual Studio 2012,主办的git的code和发布到Windows Azure。我还使用一个pre-现有的Microsoft Access 2007数据库。

Is there a way to make the database schema public, but only have a few rows of each table actually visible outside of the production server? I'm using ASP.NET MVC 4 in Visual Studio 2012, hosting the code on git, and publishing to Windows Azure. I'm also using a pre-existing Microsoft Access 2007 database.

推荐答案

您可以加密 Web.config文件中的是connectionStrings 部分文件。

You could encrypt the connectionStrings section of the Web.config file.

你怎么做,说明这里。在是connectionStrings 部分将不只是服务器的任何机器上解密的。这将是相当不方便对其他开发商虽然。你可以设置,使这个连接字符串仅使用时的网站发布使用的转换

How you do that is described here. The connectionStrings section would not be decryptable on any machine except the server. It would be rather inconvenient for other developers though. You could set up so that this connection string is only used when the web site is published using transforms.

这篇关于我怎么能混淆的开放源代码开发过程中的数据库认证信息?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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