JanmanX / EncryptTextApp

MIT License
30 stars 9 forks source link

Decrypt Text on Linux or Windows #9

Open adblockanti opened 5 years ago

adblockanti commented 5 years ago

Hello Jan,

I am using your great App https://f-droid.org/de/packages/dk.meznik.jan.encrypttext since a while. It would be very helpful, if you can give me a hint how to encrypt/decrypt the text from the App on a PC with Linux or Windows (I send very often Text between my Smartphone and a PC) I found a Web page https://encode-decode.com/aes256-encrypt-online/ where it is possible to encrypt/decrypt AES256 Text but it does not work.

Or is it maybe compatible with https://www.aescrypt.com/download/ ?

Best Regards Thor

x011 commented 4 years ago

I'm facing the same prob;em, did you get a solution for this?

x011 commented 4 years ago

In case someone needs it, here's the changed Encryption class to support decode in Windows/ Linux/MacOS via python:

EncryptActivity.java https://gist.github.com/x011/7d526a2544431b59815545d231654a2e

Encryption.java https://gist.github.com/x011/6ee03d396c933adb3715465db1b8249f

python_decode_encode_tkinter.py https://gist.github.com/x011/41d909efe412e169b78e2133f2913584

scheunengeist commented 3 years ago

I'm also looking for a way to decrypt outside of the app. Have been playing around with openssl a bit, after having done some reading, but no luck.
As far as I understand Encryption.java, specific predefined values for salt and IV are supplied, as well as PKCS7 for padding (which afaict is non-standard in openssl?).

Unfortunately I'm not a programmer, so I really have no clue. :) If i were, I guess a Java CLI decrypter could be hacked together using the code of this project, circumventing problems with differing schemes of other encryption tools.

That aside, I'd like to say that EncryptText is a really cool app with imho a flawless interface - unobtrusive, simple yet fully functional. This could really provide useful real-world encryption security for messages and text notes (the latter prompting me to search for desktop decryption options...). Thanks for creating it!

@x011 Thanks for sharing your Python solution. Do I understand correctly that the app would have to be re-built using the java source files provided by you? (which use PKCS5 and no predefined salt and IV, as far as I can understand the differences)