Added Encrypted Backup feature.The Zip File is Password Protected, which is asked from the user at the time of export immediately on click of Export Button.

This commit is contained in:
Ankit Tiwari
2021-10-15 22:51:52 +05:30
parent 44066e6599
commit 2390568bdf
3 changed files with 25 additions and 10 deletions

View File

@@ -590,8 +590,9 @@ public class ImportExportTest
TestTaskCompleteListener listener = new TestTaskCompleteListener();
// Export to the file
final String password = "123456789";
FileOutputStream fileOutputStream = new FileOutputStream(exportFile);
ImportExportTask task = new ImportExportTask(activity, DataFormat.Catima, fileOutputStream, listener);
ImportExportTask task = new ImportExportTask(activity, DataFormat.Catima, fileOutputStream,password.toCharArray(), listener);
task.execute();
// Actually run the task to completion