ProtectFile_XorD + UnProtectFile_XorD

Protects and unprotects a file using password
Creates another copy of the file that is protected or unprotected
You just need to call it giving it the file to protect, the destination file and password


Public

Tested

My Own Work

File2Protect, DestFile, Pwd
or
File2Unprotect, DestFile, Pwd

Sub Test_Encrypt()
File1 = "D:\Folder\File-Open.txt"
File2 = "D:\Folder\File-Lock.txt"
ProtectFile_XorD File2, File1, "ThyPassword"
UnProtectFile_XorD File1, File2, "ThyPassword"
End Sub

Views 1324 Downloads 389