Scripting Example 37

; *****************************************************

; Example37.ftp

; =============

; This example shows how Encrypt files via Scripting.

; To be able to make use of the Encryption commands you

; will have to download an Add-On module called "Cryptor32.exe"

; from our FTP site at: ftp://ftp.transsoft.com/pub

; -----------------------------------------------------

; The example shows the use of these commands:

; EncryptFile

; DecryptFile

; EncryptPassword

;

;---

 

; This is the Password needed to Encrypt and Decrypt again:

 

EncryptPassword "MyPassword"

 

; The "EncryptFile" commands creates a file with the same name

; but in addition with a ".RC4" extension. In this example, the

; resulting file will be called "C:\Autoexec.bat.rc4"

EncryptFile "C:\Autoexec.bat"

 

; Now we will copy the Encrypted file into a separate directory

; and decrypt it again:

 

Local-MD "C:\Tests"

Local-copy "C:\Autoexec.bat.rc4" "C:\Tests"

 

 DecryptFile "C:\Tests\Autoexec.bat.rc4"