The file diCryptOCX.dll is an ActiveX wrapper that provides an interface to most functions in the
CryptoSys API.
Strictly it's an ActiveX DLL, not an OCX, but we think three-letter acronyms with an "X" in them are cool.
diCryptOCX.dll into a convenient directory on the target machine.
regsvr32 diCryptOCX.dll
diCryptOCX.dll
(Project>References>Browse...) then
Dim oGen = New diCryptoOCX.gen Debug.Print "Version=" & oGen.Version
Dim oGen
Set oGen = Server.CreateObject("diCryptOCX.gen")
Response.Write "Version=" & oGen.Version
Refer to the syntax and details of the classes and methods of the ActiveX interface.
Note: Almost all the COM/ASP methods require the data to be encoded in hexadecimal. Handling byte array types in VBScript is fraught with problems so we don't even offer the option.
For examples, see the test code apiocxtests.asp and other ASP test pages
provided in the distribution (look in the folder C:\Program Files\CryptoSys\COM).