ActiveX DLL for CryptoSys API
The full VB6 source code for the ActiveX DLL is included along with some test ASP pages and a test EXE project. You can amend and add more functionality as you wish.
The files should be found in the directoryC:\Program Files\CryptoSys\COMunless you installed it in a different location on setup.
We don't explicitly support this ActiveX DLL. It is provided as a free add-on for Licensed users of CryptoSys API with no warranties. It works for us in our test environments. We've put a lot of effort into making sure it's something we can be proud of, but IIS is a strict and capricious master whose demands in a strange environment we can't always anticipate. If it works for you, please use it.
Hint: If you have been calling the ActiveX interface from ASP pages using IIS on your own machine, you will not be able to install a new version using the setup program. You will need to stop IIS first:
net stop w3svc
If you find a bug or would like to suggest improvements to the code, please contact us. We'll keep this project up to date and will acknowledge useful suggestions.
Most functions return a string. If the function fails - perhaps because the input was invalid - the function returns an empty string. The current code doesn't handle errors specifically (it could, but we haven't got around to it yet).
diCryptOCX.dll into a suitable directory on the target machine,
e.g. C:\myfolderhere.REGSVR32 "C:\myfolderhere\diCryptOCX.dll"You should get the response DllRegisterServer in diCryptOCX.dll succeeded.
diCryptOCX.dll
Dim oGen = New diCryptoOCX.gen Debug.Print "Version=" & oGen.Version
Dim oGen
Set oGen = Server.CreateObject("diCryptOCX.gen")
Response.Write "Version=" & oGen.Version
diCryptoSys.dll must exist in a directory in the library search path
on the target computer. Refer to the notes in the file distrib.txt supplied with the
Developer version or install using the setup program provided.
Note that the setup program does not register the ActiveX DLL - that must be done separately by following the
instructions above.
NoMessageBox DWORD value to '1' to disable pop-up messages from appearing
in the unlikely event that a critical error occurs. A critical error means that someone has interfered with the
core DLL or the random number generator has failed.
A critical error should never happen, but it pays to be sure.
[HKEY_LOCAL_MACHINE\Software\DI Management\CryptoSys\Options]NoMessageBoxThe ASP tests will not work with the free Personal Version of CryptoSys API. Please use the Server Trial Version to evaluate.
ApiOcxTrial.exe program has been replaced by the
Server Trial Version, which avoids all the palaver of registering on-line in earlier releases.
Private Declare statements in class modules.
Instead, create a TLB file and set Project References to it.
Refer to:
diCryptoSys.tlb is included in the downloaded source code.
If you would like another function added to the TLB file,
please contact us.
In the short term, you can always use a Private Declare statement
to add an extra function.
Despite all efforts to make them thread-safe, it is still not good practice to use the stateful "Init-Update-Final" functions in a live IIS project.
This page last updated: 13 September 2007
Home |
Blowfish |
Rijndael AES |
DES |
Triple DES |
SHA-1 |
SHA-256 |
Random numbers |
Compression |
CryptoSys Manual |
Purchase |
CryptoSys PKI |
Search |
Cryptography Software Code |
Contact us
Copyright © 2005-7 D.I. Management Services Pty Limited ABN 78 083 210 584,
Sydney, Australia. All rights reserved.
<www.di-mgt.com.au>
<www.cryptosys.net>