31 Commits

Author SHA1 Message Date
Thialfihar
3052ae80d5 testing thread-pausing in verifyText() 2010-09-12 19:06:26 +00:00
Thialfihar
b91f9397d9 moved some Intent extra constants into more appropriate places, some basic preparations to test thread-pausing during decryption/encryption to deal with certain situations, mainly an unknown signature key 2010-09-11 23:21:53 +00:00
Thialfihar
996a1dbe1c integrated key server look-up into decrypt Activity, allowing to touch an unkown signature to import the key
Update issue 39
added:
<string name="unknownSignatureKeyTouchToLookUp">Unknown signature, touch to look up key.</string>
2010-08-18 12:26:13 +00:00
Thialfihar
96162b6608 properly URI-decode file:// URIs, so the files can be found
Fixes issues 63
2010-08-17 12:50:42 +00:00
Thialfihar
6e9146c91a added initial support for HKP key servers, allowing searching and key import
Update issue 9
Can search a key server now, touch a result to import the key. Still needs better error handling and some Intents to import keys based on key ID. Also still need key server preferences.
2010-08-17 01:02:39 +00:00
Thialfihar
368f0a122f added an optional checkbox to the file dialog, can be used for instance to optionally delete files after importing them, and is used for that, also rearranged the option menu items for the main activity a little
Update issue 39
Added a new string:
<string name="label_deleteAfterImport">Delete After Import</string>
2010-07-26 21:57:28 +00:00
Thialfihar
b650b30a11 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>
2010-07-24 14:24:42 +00:00
Thialfihar
2c47734f0f trying to add support for various source and destination modes for encryption and decryption (String, byte[], filename, content stream), also more Intent options added 2010-07-09 20:55:17 +00:00
Thialfihar
3ac472125a some playing with content stream decryption and providing the result as content stream 2010-07-09 11:28:39 +00:00
Thialfihar
ff2da0c5d1 added some info about the speed of compression algorithms, mostly to warn about BZIP2, also added support for content URIs in file encrypt/decrypt activities 2010-07-05 13:22:03 +00:00
Thialfihar
a0ab240214 some Activity Intent filter cleanup, pass messages via Strings rather than ByteArrays, avoid some encoding issues 2010-06-06 11:42:41 +00:00
Thialfihar
26a500956f working encryption/decryption of text and files after GeneralActivity hands it over 2010-06-06 00:35:00 +00:00
Thialfihar
2f04e7ee05 some small bugfixes 2010-06-02 19:30:27 +00:00
Thialfihar
9ad474e95b trivial 2010-06-02 19:10:48 +00:00
Thialfihar
2170069d8a force message encrypt/decrypt view if the activities are called via *_AND_RETURN Intents 2010-06-02 15:33:40 +00:00
Thialfihar
1d023b0372 betterly store the information that the intent demands an immediate return, check action equality without verbose null checks 2010-06-02 10:45:26 +00:00
Thialfihar
72b899fa79 by default show the undecrypted block without line wrapping, just feels less messy, switch after decryption 2010-06-02 10:20:41 +00:00
Thialfihar
ca5416532f support ASTRO and others for the file selection 2010-06-01 21:28:30 +00:00
Thialfihar
4229b94270 working encryption out of k9mail 2010-06-01 03:20:13 +00:00
Thialfihar
24a53d548b use string constants for bundle keys, first Intent for k9mail 2010-05-31 23:15:20 +00:00
Thialfihar
5fb8cb4d5e use new key database for encryption and decryption 2010-05-26 23:40:12 +00:00
Thialfihar
2c784554c7 fixed symmetric decrypting, stream didn't support .reset(), I guess, so now creating fresh streams where needed, and changed exception string to "" + e, rather than getMessage(), as that still can be null... annoying. 2010-05-21 02:47:40 +00:00
Thialfihar
508d7ac197 catch ACTION_SEND intent to decrypt, allowing k9mail's "Forward (alternate)" feature to send to APG 2010-05-18 15:02:57 +00:00
Thialfihar
51866bb2b2 keep track of the position the input stream for decryption, makes it possible to give accurate progress information 2010-05-17 14:19:36 +00:00
Thialfihar
363dcb62b8 password cache introduced, not cleared yet. 2010-05-15 15:19:56 +00:00
Thialfihar
cab78bf4c1 remove .pgp for filename guessing for decryption 2010-05-14 11:43:07 +00:00
Thialfihar
c0d24306cb replaced error and progress strings in APG.java with resource IDs as well 2010-05-13 22:47:19 +00:00
Thialfihar
b527ae8b6d a lot of renaming of IDs, following a strict naming scheme again, moved most strings into string.xml in preparation for internationalization, APG.java still has to be changed to allow that, as it isn't Context aware in most methods 2010-05-13 20:41:32 +00:00
Thialfihar
77d1bca12f Log removal and such 2010-05-11 17:37:51 +00:00
Thialfihar
29ea6f2f6f fix a signature bug, which resulted in wrongly read signatures if there was only one line 2010-05-11 15:11:24 +00:00
Thialfihar
e36e8f1dea merged DecryptMessageActivity and DecryptFileActivity into one DecryptActivity as well 2010-05-11 14:07:15 +00:00