Kindly please share the code for Encrypting & decrypting the data files
if possible with MD5.
Thanks
Karen
Google is your friend.
http://www.frez.co.uk/freecode.htm#md5
Use Winzip with a password.
Lots of Greetings!
Volker
Thanks for the code pointer. Can you kindly point how I can use it with
encrypting a text file and how do we decrypt the file.
Volker
Can we program winzip from vbscript to take a file and generate a
zipped file with password. How secure is a winzip file with a password
are there not cracks that can break it unlike MD5.
Thanks
Karen
As Volker indicated, MD5 can't be used to encrypt a file.
It is used to ensure that a file (or string) hasn't been changed.
"MD5 is an algorithm that is used to verify data integrity ..."
http://searchsecurity.techtarget.com/sDefinition/0,,sid14_gci527453,00.html
Here's a script that may do what you want.
Option Explicit
'*
Const cVBS = "password.vbs"
Const cZIP = "password.zip"
Const cPWD = "password"
Const cEXE = "C:\Program Files\WinZip\WzZip.exe"
'*
Dim strZIP
strZIP = cEXE & " -s" & cPWD & " " & cZIP & " " & cVBS
'*
Dim objWSS
Set objWSS = CreateObject("WScript.Shell")
objWSS.Run "%comspec% /C " & strZIP,7,True
Set objWSS = Nothing
'*
WScript.Echo strZIP
This uses a an old WinZip command line utility.
You may have to change it for your needs.
Since you keep on harping on MD5, would you kindly tru to figure out
whether your customer wants encryption or a signature? MD5 is no encryption
algorithm and if your customer wants MD5 then either he doesn't want encryption
or he too, doesn't know what he's talking about. No offense, seriously.
Lots of Greetings!
Volker