RyuzakiKK / NoteCrypt

Keep your notes safe and secure with Note Crypt for Android!

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

looking for way to read on computer

wireddude opened this issue · comments

Looking for any test software I can use to read an ncf file on a computer besides using an emulator. Anything like that exist?

The class CryptoLoad.java should be adapted a bit to works on a PC.

CryptoLoad.java uses some Android imports. protected DatabaseForNotes doInBackground(final Void... params) seems to be the function you need.
You also need DatabaseForNotes( and IDatabaseForNotes) to read data into.
Then probably you should export it as an encrypted file supported by some PC application or copy the clipboard as plain text.

Maybe the best and fastest way is to add the ability to export the db from android as an xml or json (unencrypted).
I'm open to PRs if someone want to look into it.

I tried to create a program that loads/prints the database (but I didn't test it). https://gist.github.com/monolifed/dfac55524705de4285f3bba6167f250a

Exporting seems to be a better way but exporting unencrypted data might be undesirable for some people.

@monolifed good job!
I pushed a commit fixing two minor issues. The args in the main should be 0 and 1 and not 1 and 2, and the package must be com.notecrypt.utils or the cast of the read DB (at dis.readObject() ) will fail.

I tested it and everything went well.

https://gist.github.com/RyuzakiKK/f589b46e2f3280d57c97aceefa18232a

Cool, thanks! I will give that gist a shot!