aboutsummaryrefslogtreecommitdiffstats
path: root/src/org/thialfihar/android/apg/EncryptActivity.java
diff options
context:
space:
mode:
authorThialfihar <thialfihar@gmail.com>2010-07-24 14:24:42 +0000
committerThialfihar <thialfihar@gmail.com>2010-07-24 14:24:42 +0000
commitb650b30a115131c070d925d4237871f73a4ebc15 (patch)
tree9cecd9e1c7e86917cd719ee706d2b4a5b18a8b60 /src/org/thialfihar/android/apg/EncryptActivity.java
parent2407f3b9892ddb0d34cfc5c674b6d4e3a6d06b51 (diff)
downloadopen-keychain-b650b30a115131c070d925d4237871f73a4ebc15.tar.gz
open-keychain-b650b30a115131c070d925d4237871f73a4ebc15.tar.bz2
open-keychain-b650b30a115131c070d925d4237871f73a4ebc15.zip
added secure file deletion, overwriting the file with random data before actual deletion
Update issue 56 Added a method for secure file deletion. We'll possibly have to test this a bit and make sure it actually *is* secure on the filesystems used (vfat for SD card, yaffs2 for phone flash memory by default). This sort of overwrite might be absolutely useless on some filesystems. I also wanted to add an option at first, but this seems reasonably fast and in general it should be what the user wants, so for now it will ALWAYS securely delete. If there is a demand for plain deletion, then options can be added. Update issue 39 A new string: <string name="progress_deletingSecurely">deleting \'%s\' securely...</string>
Diffstat (limited to 'src/org/thialfihar/android/apg/EncryptActivity.java')
-rw-r--r--src/org/thialfihar/android/apg/EncryptActivity.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/org/thialfihar/android/apg/EncryptActivity.java b/src/org/thialfihar/android/apg/EncryptActivity.java
index 4854f355c..5d69d8563 100644
--- a/src/org/thialfihar/android/apg/EncryptActivity.java
+++ b/src/org/thialfihar/android/apg/EncryptActivity.java
@@ -779,8 +779,7 @@ public class EncryptActivity extends BaseActivity {
Bundle data = msg.getData();
String error = data.getString(Apg.EXTRA_ERROR);
if (error != null) {
- Toast.makeText(EncryptActivity.this,
- getString(R.string.errorMessage, error), Toast.LENGTH_SHORT).show();
+ Toast.makeText(this, getString(R.string.errorMessage, error), Toast.LENGTH_SHORT).show();
return;
}
switch (mEncryptTarget) {