[英]NHibernate and SQL Server 2008 encryption
How to perform SQL Server built-in encryption/decryption with NHibernate? 如何使用NHibernate执行SQL Server内置加密/解密? I mean encryption of separate columns.
我的意思是加密单独的列。
[EDIT] Sorry, missed your "SQL built-in" mention. [编辑]抱歉,错过了你的“SQL内置”提及。 This is not SQL built-in, this is NHibernate "integrated".
这不是SQL内置的,这是NHibernate的“集成”。
But could be an option of what you're trying to achieve. 但可能是你想要实现的选择。
This can be done by using a UserType. 这可以通过使用UserType来完成。
You can find this explained in detail here: http://gustavoringel.blogspot.be/2009/02/encrypting-password-or-other-strings-in.html 您可以在此处详细解释: http : //gustavoringel.blogspot.be/2009/02/encrypting-password-or-other-strings-in.html
And fully implemeted here: https://code.google.com/p/unhaddins/source/browse/uNhAddIns/uNhAddIns/UserTypes/EncryptedString.cs?r=65faefa249b695c97787f46f28e6c775a0601533 并在此完全实施: https : //code.google.com/p/unhaddins/source/browse/uNhAddIns/uNhAddIns/UserTypes/EncryptedString.cs? r = 65faefa249b695c97787f46f28e6c775a0601533
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.