【问题标题】:Database data encryption in SQL Server for web application用于 Web 应用程序的 SQL Server 中的数据库数据加密
【发布时间】:2015-12-10 02:58:53
【问题描述】:

我正在尝试以加密格式将数据保存在数据库表中,以隐藏数据库表中的数据存储以供用户读取

有什么建议我可以在应用程序级别上花费更多精力并在我的应用程序端减少开销吗?

【问题讨论】:

    标签: sql-server sql-server-2008 encryption sql-server-2005


    【解决方案1】:

    阅读此MS SQL Server Encryption Hierarchy

    例如:

    -- Open the symmetric key with which to encrypt the data.
    OPEN SYMMETRIC KEY SSN_Key_01
       DECRYPTION BY CERTIFICATE HumanResources037;
    
    -- Encrypt the value in column NationalIDNumber with symmetric key
    -- SSN_Key_01. Save the result in column EncryptedNationalIDNumber.
    UPDATE HumanResources.Employee
    SET EncryptedNationalIDNumber
        = EncryptByKey(Key_GUID('SSN_Key_01'), NationalIDNumber);
    

    MSDN EcryptionByKey syntax

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-07-18
      • 1970-01-01
      • 2012-09-09
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多