I'll give the newer 7zz a try, but I think the variable method is probably the way to go. Thanks again for your (fast!) help
Is there a way to read the password from the file then? The method from a previous post doesn't seem to work anymore. 7z a -mhe -p test.7z some_data <keyfile # ... Items to compress: 1 Enter password (will not be echoed)
I have a job that creates daily encrypted archives setting the password via stdin redirect. When I use the CLI to open them with the same method, it works. When I attempt to open them via the CLI or GUI with the string contained in the file, it fails stating bad password. Sample code: # create key / random data cat /dev/urandom | tr -dc 'a-zA-Z0-9' | head -c 24 > keyfile cat /dev/urandom | tr -dc 'a-zA-Z0-9\n' | head -20 > some_data keyvar=$(cat keyfile) zip_file=test.7z # remove previous test zip,...