I want to be able to automate the encryption of the file type .pcapng in a windows batch script. My current problem is that I get an error when extracting the encrypted file saying something along the lines "error. Wrong Password?"
my script code:
7z a -t7z captures.7z -pINSERTPASSWORDHERE -mhe *.pcapng
The compression works as expected and this format for the -p switch was taken from 7-Zip's help page. But again the set password does not work giving the error described above. After some playing I managed to get the code below to work... However I don't want there to be a prompt for a password, I want the password set using the value in the script.
7z a -t7z captures.7z -p INSERTPASSWORDHERE -mhe *.pcapng
Any help or suggestions will be much appreciated.