MSSQL 的 Python 客户端,具有加密连接?
我正在寻找一款适用于 MSSQL 的 Python 客户端,但它支持与远程 MSSQL 服务器的加密连接。
有人可以推荐一种使用 Python 通过加密连接从 MSSQL 读取数据的技术吗?
I am looking for a Python client for MSSQL, but one that supports encrypted connections to a remote MSSQL server.
Can someone recommend a technique for using Python to read from MSSQL, over an encrypted connection?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
加密通常是 MSSQL 客户端库和/或操作系统的一项功能,而不是 Python 的一项功能。因此,首先弄清楚您想要使用哪种加密机制,然后看看如何从 Python 中使用它。
MSSQL 可以配置为支持甚至需要来自客户端的加密连接:
http:// msdn.microsoft.com/en-us/library/ms191192.aspx
这意味着任何使用本机 MSSQL 客户端驱动程序的 Python 库都将支持加密,这可能意味着 Windows 上的 adodbapi 或 pymssql 之类的功能。
您还可以考虑在操作系统级别实施某些措施来加密所有网络流量,甚至网络级别(使用 VPN)。根据您的要求,这可能会更容易,但这可能是 http://serverfault.com 的问题。
Encryption is usually a feature of the MSSQL client library and/or the OS, not Python. So first work out what encrpytion mechanism you want to use, then see how you can use it from Python.
MSSQL can be configured to support and even require encrypted connections from clients:
http://msdn.microsoft.com/en-us/library/ms191192.aspx
That means that any Python library that uses the native MSSQL client drivers would support encryption, which probably means something like adodbapi or pymssql on Windows.
You could also look into implementing something at the OS level to encrypt all network traffic, or even the network level (using a VPN). It might be easier, depending on your requirements, But it's probably a question for http://serverfault.com.