Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

looking for way to read on computer #5

Open
wireddude opened this issue May 22, 2017 · 6 comments
Open

looking for way to read on computer #5

wireddude opened this issue May 22, 2017 · 6 comments

Comments

@wireddude
Copy link

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 wireddude reopened this May 22, 2017
@RyuzakiKK
Copy link
Owner

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

@monolifed
Copy link

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.

@RyuzakiKK
Copy link
Owner

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.

@monolifed
Copy link

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.

@RyuzakiKK
Copy link
Owner

@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

@wireddude
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants