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

backup/restore IDs to/from the Android app #8

Open
kolAflash opened this issue Jan 12, 2017 · 3 comments
Open

backup/restore IDs to/from the Android app #8

kolAflash opened this issue Jan 12, 2017 · 3 comments

Comments

@kolAflash
Copy link

Is it possible to restore the ID from the threema.id file to the Android Threema app?
I guess not, because the current password {0xA, 0xB, 0xC, 0xD, 0xE} is some non character stuff you can't type into the app.

I changed the password to {0x60, 0x61, 0x62, 0x63, 0x64} which translates to "01234" in ASCII and recompiled the demo.
Then I deleted threema.id and the demo generated a new one. But I also couldn't restore that new ID in the Android Threema app.

And what about the other way around and making the password configurable by a file like the threema.id file!?
So you can put the ID backup from the app into the threema.id file to make the demo use an existing Threema ID from the app.

@kolAflash
Copy link
Author

My fault, I did the ASCII translation wrong.

WRONG: {0x60, 0x61, 0x62, 0x63, 0x64} != 01234

CORRECT: {0x60, 0x61, 0x62, 0x63, 0x64} == `abcd

Now restoring the backup from the demo into the App works fine!

Nevertheless, what about:

  • Changing the default password to something easy typeable like '01234' which (correctly) translates to {0x30, 0x31, 0x32, 0x33, 0x34}.
  • Or making the password configurable. Either by configuration file or by commandline option.

@corrupt
Copy link
Contributor

corrupt commented Jan 12, 2017

Nevertheless, what about:
-Changing the default password to something easy typeable like '01234' which (correctly) translates to >{0x30, 0x31, 0x32, 0x33, 0x34}.

  • Or making the password configurable. Either by configuration file or by commandline option.

It's just demo code ;)
We'll unclutter it even more so the important stuff gets more focus. You're free to implement this however you like in your projects.

@viisauksena
Copy link

threema need at least 8 characters for backup-id passw. as far as i know

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