How can I find the initialization vector CAPICOM used to AES-encrypt my data?
问题 I have an application written in Classic ASP that encrypts data via CAPICOM and stores it in a database. The encryption code looks something like this (Classic ASP, VB. Simplified a bit for brevity): set encryptObject = Server.CreateObject("CAPICOM.EncryptedData") encryptObject.Algorithm.Name = 4 ' 4 is AES encryptObject.Algorithm.KeyLength = ' 0 is MAX encryptObject.SetSecret(sharedSecret) ' sharedSecret was set earlier encryptObject.Content = stringToEncrypt encryptedString = encryptObject