Crypto is a very easy to use ActiveX dll for encrypting and decrypting data. It can be used from almost any programing language. It Has support For RC2, RC4, DES, Triple DES and Triple DES 112.

Click here to download the complete source code, the compiled DLL and the demo’s.

If you want to use it on an ASP page on your IIS webserver, the put the DLL on that machine and register it (using regsvr32.exe) and you are ready to use encryption in your asp web pages. A demo is included.

Here is some sample code:

RC2 = 1
RC4 = 2
DES = 3
[Triple DES] = 4
[Triple DES 112] = 5
set Crypto = CreateObject("EVICT_Crypto.Crypto")
Crypto.EncryptionAlgorithm = Des
Crypto.Password = "SuperSecretCode"
EncryptThis = "This is a test"
MsgBox "We start with : " & EncryptThis
Encripted = Crypto.EncryptData(EncryptThis) & ""
MsgBox "Encripted to : " & Encripted
HEX = Crypto.ConvertBinary2Hex(Encripted)
MsgBox "As Hexidecimal : " & HEX
MsgBox "Back to Ascii : " & Crypto.ConvertHex2Ascii(HEX)
MsgBox "And decrypted to : " & Crypto.DecryptData(Encripted)
Share