Commit Graph

241 Commits

Author SHA1 Message Date
Thialfihar
46fb6fc613 change the text of encrypt buttons according to selected signature or keys, making sign-only less confusing
Update issue 39
New strings to give the encrypt buttons more meaningful and fitting texts:
<string name="btn_signToClipboard">Sign To Clipboard</string>
<string name="btn_signAndEmail">Sign And Email</string>
<string name="btn_sign">Sign</string>
2010-07-24 18:54:40 +00:00
Thialfihar
f65888046e added a little getting started dialog for first-time use, explaining some basics and recommending other apps
Update issue 39
Added:
    <string name="title_help">Getting Started</string>
    <string name="menu_help">Help</string>
    <!-- "OI File Manager", "ASTRO", and "K-9 Mail" must NOT be translated in order for the links to the market to work. -->
    <string name="text_help">Install K-9 Mail for the best integration, it supports APG for PGP/INLINE and lets you directly encrypt/decrypt emails.
\n\nIt is recommended that you install OI File Manager or ASTRO to be able to use the browse button for file selection in APG.
\n\nFirst you need some keys. Either import them via the option menus in \"Manage Public Keys\" and \"Manage Secret Keys\" or create them in \"Manage Secret Keys\".
\n\nYou can also add a GMail account in the main activity via \"Add Account\", which simplifies decrypting emails received there.
\n\nCheck out the option menus in the various activities to find more functions.
    </string>
2010-07-24 16:30:38 +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
2407f3b989 have a direct set/change pass phrase button in key creation/editing, instead of hiding it in the menu, also capitalize user id names automatically and give the email field an inputType of textEmailAddress 2010-07-23 12:57:02 +00:00
Thialfihar
a34adb09a4 added a language setting to change the language directly 2010-07-18 07:19:57 +00:00
Thialfihar
c3600ee679 fixed two variable names 2010-07-18 07:12:41 +00:00
Thialfihar
92059d6d3b fixed the made-up word "authentification", also changed the title of that dialog to "Pass Phrase", dialog message then only contains the key details or "Symmetric encryption."
Update issue 39
I tried to change "title_athentication", "passPhraseForSymmetricEncryption", and "passPhraseFor" in all languages. I think the changes are correct, but if you guys could make sure I didn't do anything dumb, then that'd be better. :)
2010-07-18 06:54:39 +00:00
Thialfihar
93835f5595 1.0.x changes merged into trunk 2010-07-16 20:18:43 +00:00
Thialfihar
f5efd73d33 set svn:eol-style to LF for all code/resource files 2010-07-16 20:13:12 +00:00
Thialfihar
ec10329664 removed unnecessary imports 2010-07-16 19:50:51 +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
c1699150a8 prevent endless loop on some binary data during stream content determination in GeneralActivity 2010-07-01 23:50:14 +00:00
Thialfihar
16cea885e2 merge 1.0.x back into trunk 2010-06-30 19:59:33 +00:00
Thialfihar
bda9745d8b much better version reading by directly looking for the APG package, rather than looping through all installed packages 2010-06-18 15:14:41 +00:00
Thialfihar
8d0160ba12 removed an outdated TODO comment 2010-06-17 13:24:30 +00:00
Thialfihar
1bad192a91 using proper PreferenceActivity now, tho the underlying storage of the values remained almost the same, some changes how the preferences are accessed and how the cache service is started 2010-06-17 13:23:07 +00:00
Thialfihar
865c998abd recent 1.0.x changes into trunk 2010-06-17 13:08:28 +00:00
Thialfihar
81327ee60b useless imports removed 2010-06-08 13:48:43 +00:00
Thialfihar
315093c5bc finally read APG version dynamicly, so the version name doesn't have to be changed anywhere but the manifest 2010-06-08 13:46:21 +00:00
Thialfihar
ce1120b66e make sure the preselected encryption key can encrypt, otherwise deselect it again at display time 2010-06-07 15:25:11 +00:00
Thialfihar
7b219c5f72 in the encrypt activity automatically select the signature key as encryption key, if it is set, and if the button is pressed 2010-06-07 14:21:28 +00:00
Thialfihar
6d2a1edd17 limit GeneralActivity to non-Uri Intents or file:// Uri Intents, now handling key imports as well 2010-06-06 19:46:49 +00:00
Thialfihar
edd755bd0e content provider changes, especially querying key rings by emails 2010-06-06 18:40:51 +00:00
Thialfihar
6a4c8c96db should have been in the last commit 2010-06-06 17:41:40 +00:00
Thialfihar
68d74b4d54 the select public key list now uses the selection for the ordering, putting already selected keys on top, also correctly maintains the selection over repeated filtering 2010-06-06 15:54:27 +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
8c404d83d7 added search to option menu and make it pop up when keys on the physical keyboard are pressed 2010-06-05 22:44:47 +00:00
Thialfihar
84d00abea1 added search feature for key management and select Activities 2010-06-05 21:47:16 +00:00
Thialfihar
a089dbbb73 introduced a general application to handle certain Intents, only to hand them to other APG Activities after looking at the content of the passed data 2010-06-05 17:54:40 +00:00
Thialfihar
a571ce7c52 make sure the Intent passed to Service.onStart() is not null, not sure why it would be, but saw such an exception on the market 2010-06-04 21:52:20 +00:00
Thialfihar
e334a36194 fix the inbox list for GMail account 2010-06-04 20:21:51 +00:00
Thialfihar
4acca3b54f lifted 1.0.x to new version 2010-06-03 21:31:02 +00:00
Thialfihar
031f9bb5e1 make sure previously cache settings of "until quit" are changed to the new default of 3 minutes, as indefinite caching is no longer supported 2010-06-03 16:24:04 +00:00
Thialfihar
600b44b9fc added a service to handle the caching, this'll ensure the cache works while no activity is around, which is better for k9mail integration
it also is a more efficient and much smarter cache, not requiring an own timer thread, just a service that sleeps must of the time, it also is more accurate in cleaning up the entries, ensuring that the worst case of too late removal is 5 seconds
2010-06-03 16:17:55 +00:00
Thialfihar
371dc31b97 changes adjusted once more 2010-06-03 15:08:06 +00:00
Thialfihar
c9b49f5ece changes adjusted 2010-06-02 19:49:46 +00:00
Thialfihar
c2ecd48d19 added changes for 1.0.0 2010-06-02 19:46:01 +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
7193edbba2 added content provider again and read permission to grab key details 2010-06-02 14:01:18 +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
5547f61e4f deliver the user id as well for secret key selection, so k9mail can use it to display the signature key 2010-06-01 14:59:06 +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
d483feb64c minor fixes to make key retrieval more stable 2010-05-30 16:53:04 +00:00
Thialfihar
d1fa1895f1 fixed a method name 2010-05-29 20:38:45 +00:00
Thialfihar
334852402d adjust version number 2010-05-28 11:15:54 +00:00
Thialfihar
2f3bc6dcaf trivial 2010-05-28 08:12:54 +00:00
Thialfihar
eed42b2e34 fully removed old DataProvider for now, manage queries, clean up old database stuff 2010-05-28 07:04:01 +00:00
Thialfihar
b943f706b6 some coding practice and potential bug fixes 2010-05-27 20:31:34 +00:00
Thialfihar
b42f02ba92 some coding practice and potential bug fixes 2010-05-27 20:27:21 +00:00
Thialfihar
570b7a6d8e added revocation and creation/expire time info to key table, use both for public and secret key selection 2010-05-27 20:09:26 +00:00
Thialfihar
edd9a22882 some (hopefully better) database/cursor handling, picking encryption and signature keys working again, tho it'll have to be tidied up 2010-05-27 01:40:50 +00:00
Thialfihar
5fb8cb4d5e use new key database for encryption and decryption 2010-05-26 23:40:12 +00:00
Thialfihar
fa99a70a49 import/export/delete/save keyrings working with new database stuff 2010-05-26 15:25:14 +00:00
Thialfihar
6f28f5ee4e key lists somewhat wrapped into one, using the new database stuff, Apg cleaned up a bit, preparing to use the database there as well 2010-05-26 00:33:26 +00:00
Thialfihar
e83f1e7b3a first steps towards better low-level key management, database upgrade to use KeyRing, Key, and UserId tables 2010-05-25 19:34:56 +00:00
Thialfihar
cbe86d5f2a give 0.10.x branch its version info 2010-05-21 15:46:33 +00:00
Thialfihar
71f5af31e4 catch EOFException during import 2010-05-21 14:42:12 +00:00
Thialfihar
97745873e7 lifting branch to 0.9.8 2010-05-21 03:04:02 +00:00
Thialfihar
e72cd83286 added changes of 0.9.6 back, will release this as another quickfix due to the decryption bug 2010-05-21 02:50:07 +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
0cda18e357 preparing for version 0.9.7 2010-05-20 22:17:17 +00:00
Thialfihar
e9785168de added changes of 0.9.5 back and added the import fix, gonna release this on its own, as it is definitely a bug that affected many 2010-05-20 22:06:26 +00:00
Thialfihar
260946009a properly import keys from streams that may contain multiple blocks of ASCII armour or binary data, also small adjustment in strings 2010-05-20 22:03:41 +00:00
Thialfihar
6d107f3498 promoted to next version 2010-05-19 16:33:02 +00:00
Thialfihar
f424b7f581 import file default for keys is empty now, changed import text a little, and changing the pass phrase during key editing updates the pass phrase cache 2010-05-19 14:51:58 +00:00
Thialfihar
5b28bbdee2 removed unnecessary imports 2010-05-19 14:41:19 +00:00
Thialfihar
f7eae9c7e2 actually use the compression settings ;), and give them better default values 2010-05-19 14:38:06 +00:00
Thialfihar
b6ac47e46c updated change log 2010-05-19 14:12:13 +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
eb636fce47 default message/file compression settings added, also a setting for file decryption to change the default when a file requires it 2010-05-16 14:20:17 +00:00
Thialfihar
c7f0041751 give key editing its own pass phrase mechanism, as the new cache won't work there 2010-05-16 13:35:16 +00:00
Thialfihar
9855f4d144 honour the pass phrase cache TTL by running a timer and removing expired cached pass phrases 2010-05-16 13:17:45 +00:00
Thialfihar
f94af3e4e6 unused imports removed 2010-05-15 16:11:28 +00:00
Thialfihar
2c5a80a16f added pass phrase cache to preferences, not used yet, but preference and about menu item now show up in every activity 2010-05-15 16:09:49 +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
5f6a098914 lifted version to 0.9.5 and cleared change log 2010-05-11 21:34:00 +00:00
Thialfihar
77d1bca12f Log removal and such 2010-05-11 17:37:51 +00:00
Thialfihar
5a7e3e3938 brought change log up to date 2010-05-11 17:36:10 +00:00
Thialfihar
a8ee0bd863 small fix to be compatible with Android 1.5 2010-05-11 16:35:41 +00:00
Thialfihar
09ad7df83d use XML layout for pass phrase dialogs as well now, doing away with awkward manual padding, important for Android 1.5 compatibility 2010-05-11 16:33:34 +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
Thialfihar
5e73b696d1 new EncryptActivity to handle message and file encryption all in one 2010-05-09 19:51:21 +00:00
Thialfihar
6e3f182291 minor 2010-05-09 13:38:05 +00:00
Thialfihar
73888622f4 added a button to encrypt to clipboard, change log and about window got their own layout now with proper linkification 2010-05-09 13:29:30 +00:00
Thialfihar
2e1aad0f81 reset changelog for 0.9.4 2010-05-04 23:19:39 +00:00
Thialfihar
49be34c4a4 lift version to 0.9.4 2010-05-04 17:38:54 +00:00
Thialfihar
168795b827 removed unnecessary imports 2010-05-04 16:07:44 +00:00
Thialfihar
3008f2c51f added an option to delete files after encryption or decryption, also no longer delete the output file if either fails 2010-05-04 15:56:55 +00:00
Thialfihar
f34fcaabf3 give decryption a moving progress bar for a data of unknown size 2010-05-04 15:20:30 +00:00
Thialfihar
6b52878056 close streams more consistently (outside of encrypt/decrypt), force a new output filename guess if the ASCII armour checkbox state changes 2010-05-04 14:27:31 +00:00
Thialfihar
e542c37eb3 use buffers for encryption, so large files work as well... also showing encryption progress with better accuracy, which is especially useful for large encryptions
Fixes issue 18.
2010-05-04 14:07:18 +00:00
Thialfihar
778f51dbaa check whether the hashed packet is non-null before using it, also checking the unhashed ones in the same manner... not sure whether that's needed, but can't hurt? Fixes issue 17. 2010-05-04 13:11:56 +00:00
Thialfihar
95e02158d8 increased app version and cleared change log for 0.9.3 2010-04-29 13:31:10 +00:00
Thialfihar
e4183c1fcd update signature layout even if select key was cancelled 2010-04-29 12:56:55 +00:00
Thialfihar
0b397581a7 update signature layout even if select key was cancelled 2010-04-29 12:53:33 +00:00
Thialfihar
e36dfa324a removed some useless imports 2010-04-29 12:45:11 +00:00
Thialfihar
3dc5e37cc6 use the app directory for default import/export file paths 2010-04-29 12:44:08 +00:00
Thialfihar
dc5125787d updated changes dialog 2010-04-29 11:51:34 +00:00
Thialfihar
b20419fbf3 recognize RSA_SIGN and RSA_ENCRYPT keys correctly, which fixes the hushmail problems 2010-04-29 11:50:25 +00:00
Thialfihar
a6fe3364d1 changed the option menu item order 2010-04-29 10:55:50 +00:00
Thialfihar
f01c1a6679 updated changes dialog 2010-04-29 01:47:04 +00:00
Thialfihar
5cf07b4a03 only allow asymmetric encryption or symmetric encryption of files, not both like before 2010-04-29 01:38:19 +00:00
Thialfihar
a037815454 removed some useless imports 2010-04-29 01:18:42 +00:00
Thialfihar
88fc659ff6 put return values into the Id class as well, changed encrypt file layout to use symmetric OR asymmetric again, layout and string adjustments 2010-04-29 01:11:26 +00:00
Thialfihar
e83a5311ae add preferences, use them where applicable 2010-04-28 23:35:11 +00:00
Thialfihar
86192e39d9 file encrypt layout entirely rewritten, should be much more userfriendly and work on more devices, changed message encrypt layout to match 2010-04-26 17:41:06 +00:00
Thialfihar
b01a47a115 set branch to next version, reset changelog 2010-04-24 18:10:53 +00:00
Thialfihar
d8e89c8822 choose the NEAREST prime for ElGamal, rather than the next lowest 2010-04-24 17:52:13 +00:00
Thialfihar
81cdd6b943 ElGamal support added, fix of some minor GUI bugs, added a bunch of safe primes for ElGamal key creation 2010-04-24 17:40:09 +00:00
Thialfihar
e30a531229 bug prevents pass phrase being recognized, making key creation unusable 2010-04-24 16:00:56 +00:00
Thialfihar
25b8eb9d77 reset changelog for 0.9.1 2010-04-24 13:30:22 +00:00
Thialfihar
b52103295a version lifted to 0.9.1 2010-04-24 13:16:21 +00:00
Thialfihar
2c093b3e0d clean up for release, AsciiArmour was a Button instead of CheckBox... fixed 2010-04-24 02:16:45 +00:00
Thialfihar
89b8ff7862 slight text change 2010-04-23 17:03:05 +00:00
Thialfihar
0e14dcb290 layout adjustments, force portrait layout for EncryptFileActivity for now, (En|De)cryptFileActivity can now handle symmetric algorithms 2010-04-23 17:00:52 +00:00
Thialfihar
ab6c884bdf steps towards symmetric file encryption 2010-04-23 00:01:59 +00:00
Thialfihar
78193007b2 added file decryption, rewrote the various "Choice" derivations to us the Id structure as well 2010-04-22 15:30:19 +00:00
Thialfihar
26cf672d67 set svn:ignore for bin directory and .project/.classpath
asymmetric file encryption working, some more cleanup, introduced an application directory to encrypt to by default
2010-04-19 13:56:43 +00:00
Thialfihar
d5c5a2c43b major restructuring, moving dialog, message, menu, option menu, task, type IDs into Id in a similar structure as the generated R, also introducing a BaseActivity class that almost all activities derive from, which generates some common dialogs, handles the progress update, thread management, and thread communication
also adding first draft of encrypt file activity, not very functional yet
2010-04-19 02:12:13 +00:00
Thialfihar
09741b0286 use OI File Manager intents to handle open/save file selection 2010-04-17 23:36:47 +00:00
Thialfihar
de6743e4f5 copyright header in new file 2010-04-17 19:12:21 +00:00
Thialfihar
0f0f02776d wrapped file dialogs into class in preparation for proper file picking 2010-04-17 19:10:39 +00:00
Thialfihar
4fc97b90fc lift branch 0.9.x's version to 0.9.0 and set version code to 5 for now 2010-04-17 18:19:13 +00:00
Thialfihar
5b5e15c886 changelog details for 0.8.1 2010-04-15 16:44:45 +00:00
Thialfihar
c212f28c44 rewrote sign-only code, also finally recognize sign-only emails in the list and allow opening them for verification 2010-04-15 16:37:32 +00:00
Thialfihar
acd71a45c0 minor layout fixes, replace non breakable spaces if found in an encrypted armored message, as they break the decryption, the HTML representation of GMail introduces them for empty lines ending in a normal space, also adjusted the PGP_MESSAGE regex to allow for spaces after the -----, which seems to be added by some implementations 2010-04-15 14:37:46 +00:00
Thialfihar
b8009d6d43 0.8.x branch promoted to version 0.8.1, fixed list view of mail accounts not filling the main layout, made a bunch of private classes static 2010-04-14 14:08:24 +00:00
Thialfihar
42f1720bb3 initial commit of v0.8.0 2010-04-06 19:54:51 +00:00