This example shows how to decrypt a file.

 

   
Setup
 
     

First we'll set up some convenient variables containing our password, a path to the file we want to decrypt and a path to the location we want the decrypted file saved.

thePass = "pittabread"
theInPath = "c:\mysecurefolder\myfile.txt"
theOutPath = "c:\myfolder\myfile.txt"

   
Crypto
 
     

Next we create an ABCCrypto Crypto object and ask it to decrypt the file using the password we provided as a key.

Set theCrypto = Server.CreateObject("ABCCrypto2.Crypto")
theCrypto.License = "30-day-trial"
theCrypto.Password = thePass
theCrypto.DecryptFile(theInPath, theOutPath)