[file-roller] Use AES256 as encryption type when creating zip files with 7zip



commit 720de1d777f57998cf2588275b9e15b5e4129b94
Author: Matthew Hall <matt castleinthesky org>
Date:   Wed Dec 9 20:15:53 2009 +0100

    Use AES256 as encryption type when creating zip files with 7zip

 src/fr-command-7z.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/fr-command-7z.c b/src/fr-command-7z.c
index f039c0e..94609e9 100644
--- a/src/fr-command-7z.c
+++ b/src/fr-command-7z.c
@@ -324,8 +324,10 @@ fr_command_7z_add (FrCommand     *comm,
 		fr_process_add_arg_concat (comm->process, "-w", base_dir, NULL);
 	}
 
-	if (is_mime_type (comm->mime_type, "application/zip"))
+	if (is_mime_type (comm->mime_type, "application/zip")) {
 		fr_process_add_arg (comm->process, "-tzip");
+		fr_process_add_arg (comm->process, "-mem=AES256");
+	}
 
 	fr_process_add_arg (comm->process, "-bd");
 	fr_process_add_arg (comm->process, "-y");



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]