capicom

How can I find the initialization vector CAPICOM used to AES-encrypt my data?

强颜欢笑 提交于 2021-01-29 04:20:53
问题 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

Capicom 3des: 2 key or 3 key?

天涯浪子 提交于 2021-01-29 03:23:59
问题 Much searching and reading has not told me whether the capicom.encrypteddata class module (it's VB6, but that shouldn't matter in answering this question) is using 2-key 3DES or 3-key 3DES. ( .Algorithm.Name = CAPICOM_ENCRYPTION_ALGORITHM_3DES ) Anyone know which one it is using? A source of this information would also be helpful. I suspect, since I don't think high enough key lengths are supported, that it is 2DES. But I haven't found acceptable confirmation. 回答1: CAPICOM is a thin wrapper

Capicom 3des: 2 key or 3 key?

百般思念 提交于 2021-01-29 03:20:34
问题 Much searching and reading has not told me whether the capicom.encrypteddata class module (it's VB6, but that shouldn't matter in answering this question) is using 2-key 3DES or 3-key 3DES. ( .Algorithm.Name = CAPICOM_ENCRYPTION_ALGORITHM_3DES ) Anyone know which one it is using? A source of this information would also be helpful. I suspect, since I don't think high enough key lengths are supported, that it is 2DES. But I haven't found acceptable confirmation. 回答1: CAPICOM is a thin wrapper

VB6: Capicom Crashes on WinXP [duplicate]

和自甴很熟 提交于 2019-12-14 04:04:52
问题 This question already has an answer here : Closed 11 years ago . Any suggestions on figuring out this crash? The below code intermittently crashes between logging <part>14 and logging <part>15 . Plaintext is a path string (in this case it is "C:\Documents and Settings\Brian\Desktop\Joy\" , despite a clear lack of such joy. I have a sinking feeling this is a symptom of some sort of evil memory issue. I tried with both Capicom 2.1.0.1 and 2.1.0.2, both of which crash. The latter gives a

How can I access Certificate ExtendedProperties using powershell?

て烟熏妆下的殇ゞ 提交于 2019-12-11 09:53:29
问题 If you open the properties window of a certificate in the certificate manager in windows you will see both a friendlyname and description field. I'm trying to get to the description field programatically via powershell. When accessing the certificates via powershell's certificate provider cert: you get an object that only exposes the FriendlyName as Name. As far as I can tell, this is all a wrapper to the CAPICOM APIs. Neither the description or the get_extendedproperties method are exposed.

How to sign the document with a certificate's private key from the browser (CAPICOM alternative)?

冷暖自知 提交于 2019-12-11 03:48:44
问题 So, till Windows 7 there was a Microsoft ActiveX component: CAPICOM, which one could call from Javascript and then show the contents of the certificate storage on the client's machine. The client then could choose the appropriate certificate and sign some document with the certificate's private key. That's how the access to the certificate storage looked in Javascript: var MyStore = new ActiveXObject("CAPICOM.Store"); var oCertificates = new ActiveXObject("CAPICOM.Certificates"); // attempt

How do I sign a PDF with a Smart Card in a web context using iText?

家住魔仙堡 提交于 2019-12-08 07:39:09
问题 Read through the following references: iText Digital signature white paper, and C# examples. (specifically chapter 4) For those interested, another great and concise summary of the PDF signing process. CAPICOM documentation. Online examples / questions here and on iText mailing list archives, such as here and here. Hashing code: BouncyCastle.X509Certificate[] chain = Utils.GetSignerCertChain(); reader = Utils.GetReader(); MemoryStream stream = new MemoryStream(); using (var stamper =

How to Programmatically Code-Sign an executable with a PFX (Bouncy Castle or Otherwise)

…衆ロ難τιáo~ 提交于 2019-11-29 03:48:30
I am trying to determine the best method for code-signing an executable using Bouncy Castle, managed code, or un-managed code from C#. Since CAPICOM is now deprecated, I imagine one of the SignerSign methods from mssign32.dll is the best way to go if it needs to be done unmanaged. This answer ( https://stackoverflow.com/a/3952235/722078 ) seems close, but it produces a .p7m file, which, while appearing to be the right size, will not run correctly (obviously renamed to .exe before running). The solution given by the question-asker here ( API/Library to replace signtool.exe ) seemed promising

How to Programmatically Code-Sign an executable with a PFX (Bouncy Castle or Otherwise)

梦想与她 提交于 2019-11-27 17:47:29
问题 I am trying to determine the best method for code-signing an executable using Bouncy Castle, managed code, or un-managed code from C#. Since CAPICOM is now deprecated, I imagine one of the SignerSign methods from mssign32.dll is the best way to go if it needs to be done unmanaged. This answer (https://stackoverflow.com/a/3952235/722078) seems close, but it produces a .p7m file, which, while appearing to be the right size, will not run correctly (obviously renamed to .exe before running). The