NoteCrypt icon indicating copy to clipboard operation
NoteCrypt copied to clipboard

looking for way to read on computer

Open wireddude opened this issue 8 years ago • 6 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?

wireddude avatar May 22 '17 01:05 wireddude

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

RyuzakiKK avatar May 23 '17 12:05 RyuzakiKK

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.

monolifed avatar May 23 '17 14:05 monolifed

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.

RyuzakiKK avatar May 23 '17 14:05 RyuzakiKK

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 avatar May 23 '17 15:05 monolifed

@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

RyuzakiKK avatar May 23 '17 17:05 RyuzakiKK

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

wireddude avatar May 24 '17 15:05 wireddude