始终加密不与aspnet_membership一起使用

时间:2019-05-13 13:05:52

标签: asp.net-membership sql-server-2016 always-encrypted

在实施传输中的数据时,我遇到了此阻止程序问题。 aspnet_Membership与SQL Server的“始终加密”功能不兼容

用于实现传输中的数据(我已经实现了静态数据,即对数据库进行了加密) 1.我们需要在连接字符串中添加一个部分作为Column Encryption Setting = enabled字符串

另外,当将值传递给存储过程中的加密列时,我们需要使用SqlParameter对象。定位加密列的值是必需的。 一种。例如

```paramSSN.ParameterName = @"@SSN";
```paramSSN.DbType = DbType.AnsiStringFixedLength;
```paramSSN.Direction = ParameterDirection.Input;

Currently, I’m getting this error after login into my application

"The data types nvarchar and nvarchar(256) encrypted with (encryption_type = 'DETERMINISTIC', encryption_algorithm_name = 'AEAD_AES_256_CBC_HMAC_SHA_256', column_encryption_key_name = 'CEK_Auto1', column_encryption_key_database_name = 'gvru') are incompatible in the equal to operator."

Error Orgin: from store procedure aspnet_Membership_GetPasswordWithFormat

In this case, we need to pass all the encrypted parameters in the format mentioned above to the SP aspnet_Membership_GetPasswordWithFormat, but this is not possible in the current situation, because it is inbuilt in aspnet_membership and we cannot modify it. Any pointers will be useful.

0 个答案:

没有答案