Creating a Symmetric AES128 Key in SQL Server based on Key and Initial Vector
问题 I have some Key and Initial Vector, which I'm using for encryption purposes in my .NET app. Let's say they are: Key = 0x0102030405060708090A0B0C0D0E IV = 0xA1A2A3A4A5A6A7A8A9AAABACADAE In some cases I would like to perform encryption on the SQL Server (not in the app), but decrypt the data in the app. I thought that I'll might be able to create a temporary symmetric key in the DB and perform encryption: CREATE SYMMETRIC KEY #TempKey WITH ALGORITHM = AES_128 , IDENTITY_VALUE = ??? , KEY_SOURCE