Bonsoir,
Merci à tous pour vos réponses.
Je vais tester les commandes ;-)
1) zip -e toto
Enter password:
Verify password:
2)
zip -e test/ test.zip
Enter password:
Verify password:
zip warning: name not matched: test.zip
zip error: Nothing to do! (test/.zip)
Quant à 7zip : problème :
7zr <command> [<switches>...] <archive_name> [<file_names>...]
[<@listfiles...>]
<Commands>
a: Add files to archive
b: Benchmark
d: Delete files from archive
e: Extract files from archive (without using directory names)
l: List contents of archive
t: Test integrity of archive
u: Update files to archive
x: eXtract files with full paths
<Switches>
-ai[r[-|0]]{@listfile|!wildcard}: Include archives
-ax[r[-|0]]{@listfile|!wildcard}: eXclude archives
-bd: Disable percentage indicator
-i[r[-|0]]{@listfile|!wildcard}: Include filenames
-m{Parameters}: set compression Method
-o{Directory}: set Output directory
-r[-|0]: Recurse subdirectories
-scs{UTF-8 | WIN | DOS}: set charset for list files
-sfx[{name}]: Create SFX archive
-si[{name}]: read data from stdin
-slt: show technical information for l (List) command
-so: write data to stdout
-ssc[-]: set sensitive case mode
-t{Type}: Set type of archive
-u[-][p#][q#][r#][x#][y#][z#][!newArchiveName]: Update options
-v{Size}[b|k|m|g]: Create volumes
-w[{path}]: assign Work directory. Empty path means a temporary directory
-x[r[-|0]]]{@listfile|!wildcard}: eXclude filenames
-y: assume Yes on all queries
Je testerai avec OpenSSL
Encrypt :
tar cz folder_to_encrypt|openssl enc -aes-256-cbc -e > out.tar.gz.enc
-->
tar cz test/|openssl enc -aes-256-cbc -e > out.tar.gz.enc
enter aes-256-cbc encryption password:
Verifying - enter aes-256-cbc encryption password:
Il a bien généré le fichier out.tar.gz.enc
Decrypt :
openssl aes-256-cbc -d -in out.tar.gz.enc|tar xz
openssl aes-256-cbc -d -in out.tar.gz.enc|tar xz
enter aes-256-cbc decryption password:
test
Ok :-)