tag:help.masterpassword.app,2014-09-03:/help/discussions/problems/315-seeming-difference-with-android-appMaster Password: Discussion 2018-10-19T10:04:01Ztag:help.masterpassword.app,2014-09-03:Comment/384064352015-11-07T22:02:37Z2015-11-07T22:02:38Zseeming difference with android app<div><p>Hi,</p>
<p>I have been using the app for some time on my android phone on
android version 4.4.4 on my Nexus 4. I have just received a new
phone (wileyfox storm) which runs a Cyanogen OS - 12.1-YOG4PAS3MG -
which is Android 5.1.1 based.</p>
<p>I now find on the new fone passwords are being generated that
differ from the version on my old phone and my linux terminal based
implementation.</p>
<p>I have checked several times and I dont seem to be typing in
anything different. I have tried using my old phone and get the
passwords I expected.</p>
<p>Is this a known issue?</p>
<p>Best Regards,</p>
<p>Andy</p></div>tag:help.masterpassword.app,2014-09-03:Comment/384064352015-11-07T23:40:49Z2015-11-07T23:40:49Zseeming difference with android app<div><p>Hey Andy. Can you reproduce the problem with a test user and/or
a test master password? If so, please specify the test user name,
master password, site name and resulting password on various
platforms.</p></div>Maarten Billemonttag:help.masterpassword.app,2014-09-03:Comment/384064352015-11-08T12:48:50Z2015-11-08T12:48:51Zseeming difference with android app<div><p>Hi Maarten,</p>
<pre>
<code>I have tested as follows:</code>
</pre>
<p>User: New Test User</p>
<p>Password: new test user password</p>
<p>Site: google.com</p>
<p>Resulting passwords:</p>
<p>Terminal C Code Version - Linux Mint 14 Maya: Jifn3*NalzSemi<br>
Nexus 4 Android 4.4.4: Jifn3*NalzSemi<br>
Wileyfox Cyanogen OS - 12.1-YOG4PAS3MG -Android 5.1.1:
BetqDoqiPeqv4=</p>
<p>I have done it a few times to make sure the results are
consistent each<br>
time.</p></div>andytag:help.masterpassword.app,2014-09-03:Comment/384064352015-11-11T21:01:33Z2015-11-11T21:01:34Zseeming difference with android app<div><p>Hi Maarten,</p>
<pre>
<code>Just to let you know I tried this on a friends Sony Experia with</code>
</pre>
<p>Android 5.1.1 running and it returns the results I was expecting
so it<br>
seems to be specific to the Cyanogen somehow.....</p></div>andytag:help.masterpassword.app,2014-09-03:Comment/384064352015-11-12T01:18:13Z2015-11-12T01:18:31Zseeming difference with android app<div><p>Hey Andy,</p>
<p>If you have ADB installed, can you try running:<br></p>
<pre>
<code>echo c_.l_.m_.MasterKeyV{0..3} | xargs -n1 -I{} adb shell setprop log.tag.{} VERBOSE
adb logcat -s c_.l_.m_.MasterKeyV{0..3}:VERBOSE</code>
</pre>
<p>And then trying the above again to see if you can get some
details about the key and password generation of the test site's
password on the Cyanogen device?</p></div>Maarten Billemonttag:help.masterpassword.app,2014-09-03:Comment/384064352015-11-13T09:17:12Z2015-11-13T09:17:12Zseeming difference with android app<div><p>HI Maarten,</p>
<pre>
<code>I have tried to use ABD to the phone but I am having problems with the</code>
</pre>
<p>device not being connected. I set up the UDEV etc. I will and
start over<br>
during the weekend with luck.</p></div>andytag:help.masterpassword.app,2014-09-03:Comment/384064352015-11-20T09:42:46Z2015-11-20T09:42:47Zseeming difference with android app<div><p>Hi Maarten, hi Andy,</p>
<p>as I encountered the same Issue with my new LG G4 I built the
app from source and did some debugging. Compared to an emulator
(from android-sdk) everything was exactly the same (masterpassword,
masterKeySalt, etc) but the generated masterKeys were different.
Obviously the scrypt call returns unequal values for equal
parameters.</p>
<p>Spontaneously I suppose either the different Android version
(5.0 vs 5.1) or the different architecture (x86 vs arm_x64) to
cause the bug in scrypt.</p>
<p>Greetings<br>
Oliver</p></div>oli_0x72tag:help.masterpassword.app,2014-09-03:Comment/384064352015-11-20T11:30:19Z2015-11-20T11:30:20Zseeming difference with android app<div><p>Thanks for this Oliver, I have not had time to try this
further... I'm<br>
clearly not doing something right to get my phone to connect to
ADB.</p></div>andytag:help.masterpassword.app,2014-09-03:Comment/384064352015-11-20T13:21:04Z2015-11-20T13:21:06Zseeming difference with android app<div><p>Did another test with an Android 5.1 emulator and it works as
expected. Unfortunately I did not get the 64bit emulator to work...
Therefor I saved the logs this time</p></div>oli_0x72tag:help.masterpassword.app,2014-09-03:Comment/384064352015-12-10T13:45:38Z2015-12-10T13:45:38Zseeming difference with android app<div><p>It appears your LG is triggering a bug in the scrypt
library.</p>
<p>I'm not sure when I'll have time to debug wg's libscrypt,
though. For your reference, it is here: <a href="https://github.com/wg/scrypt">https://github.com/wg/scrypt</a></p></div>Maarten Billemonttag:help.masterpassword.app,2014-09-03:Comment/384064352015-12-11T20:09:18Z2015-12-11T20:09:19Zseeming difference with android app<div><p>I had a few minutes today and had a closer look at wg's
libscrypt. As you probably know it distinguishes three different
loaders (sys, jar and nil).<br>
Sysloader which is used by default leads to mentioned behavior.<br>
JarLoader throws an Exception and<br>
NilLoader with its Java implementation returns the expected key
though it takes almost a minute to derive the key.</p>
<p>In case you my need a helping hand investigating this issue feel
free to contact me and I'll see what I can do</p></div>oli_0x72tag:help.masterpassword.app,2014-09-03:Comment/384064352015-12-12T23:26:32Z2015-12-12T23:26:33Zseeming difference with android app<div><p>just another short notice: removing the arm64-v8a libscrypt.so
leads to the app calculating the right passwords - so bug might be
in that library</p></div>oli_0x72tag:help.masterpassword.app,2014-09-03:Comment/384064352015-12-22T14:33:47Z2015-12-22T14:33:48Zseeming difference with android app<div><p>I have the same issue on a Sony Xperia Z5 Compact, Android 5.1.1
(current official release)<br>
The web/desktop versions deliver the same result, android not.<br>
Note: the Username I tested with contains a "special" character
'é'</p></div>Mazinger Pétertag:help.masterpassword.app,2014-09-03:Comment/384064352016-01-02T17:30:35Z2016-01-02T17:30:38Zseeming difference with android app<div><p>... same problem here - web and jar versions create the same
passwords while android (5.0.2) does not. TEST (user=test,
masterpassword=test, site=test) should generate: CefoTiciJuba7@</p>
<p>regards<br>
Dirk</p></div>Dirktag:help.masterpassword.app,2014-09-03:Comment/384064352016-01-02T19:31:27Z2016-01-02T19:31:27Zseeming difference with android app<div><p>Hi all,<br>
I just tested folloing app on Android: <a href="https://play.google.com/store/apps/details?id=de.devland.masterpassword">
https://play.google.com/store/apps/details?id=de.devland.masterpass...</a></p>
<p>This generated same passwords than web and Java Versions on my
PC!</p>
<p>regards<br>
Dirk</p></div>Dirktag:help.masterpassword.app,2014-09-03:Comment/384064352016-01-02T20:49:57Z2016-01-02T20:49:58Zseeming difference with android app<div><p>Having seen this I too have experimented with this app
implementation and the results are consistent with the PC and java
versions I have installed.</p></div>Andy Wilsontag:help.masterpassword.app,2014-09-03:Comment/384064352016-01-03T23:59:24Z2016-01-03T23:59:25Zseeming difference with android app<div><p>Had a look at this app and its source some time ago - it's using
its own custom libscrypt.so and therefore doesn't have this
issue.</p></div>oli_0x72tag:help.masterpassword.app,2014-09-03:Comment/384064352016-02-16T04:54:51Z2016-02-16T04:54:52Zseeming difference with android app<div><p>Seeing this issue on my new Nexus 5x. On my previous phone (Moto
X), everything worked fine, but now on my Nexus 5x, all the
passwords are different from what I see on my Mac.</p></div>Jinwoo Leetag:help.masterpassword.app,2014-09-03:Comment/384064352016-02-19T13:08:51Z2016-02-19T13:08:52Zseeming difference with android app<div><p>Hey Jinwoo,<br>
your Nexus 5x has the same 64bit CPU as the LG G4 I own. As I
pointed out earlier there's a bug in the 64bit Library Maarten
ships with his app. So you have to wait until he will release a new
version with a fixed library or get yourself another app.<br>
regards Oliver</p></div>oli_0x72tag:help.masterpassword.app,2014-09-03:Comment/384064352016-02-20T23:22:57Z2016-02-20T23:22:57Zseeming difference with android app<div><p>I've been working on a work-around in the mean time. I'll let
you know when something becomes available.</p></div>Maarten Billemonttag:help.masterpassword.app,2014-09-03:Comment/384064352016-02-21T16:22:12Z2016-02-21T17:02:37Zseeming difference with android app<div><p>Can people here give this version a try and report back?</p>
<p><a href="https://ssl.masterpasswordapp.com/masterpassword-android-2.4-java.apk">
https://ssl.masterpasswordapp.com/masterpassword-android-2.4-java.apk</a></p>
<p>On the bottom, there is a new button "Integrity Tests". From
this screen, we run the standard Master Password test suite. If you
get unexpected passwords, these tests should fail.</p>
<p>If so, see if disabling "Use native key derivation" helps. The
toggle is on the bottom of the tests screen. Note: It will likely
make key derivation extremely slow. Key derivation is only needed
when the user's name or master password changes (or the app
restarts).</p></div>Maarten Billemonttag:help.masterpassword.app,2014-09-03:Comment/384064352016-02-22T19:25:43Z2016-02-22T19:25:43Zseeming difference with android app<div><p>I tested using the apk you linked above. When the "Use native
key derivation" checkbox checked, the test immediately fails,
saying "Incompatible device or OS". With the checkbox unchecked,
the progress is extremely slow indeed but it eventually seemed to
have passed. When I came back to the screen after ~2 hours, the
test window has gone. I don't know why. But I verified all the
tests were passing until it had been running for ~30 minutes.</p></div>Jinwoo Leetag:help.masterpassword.app,2014-09-03:Comment/384064352016-02-23T16:46:40Z2016-02-23T16:46:41Zseeming difference with android app<div><p>I can verify Jinwoos experience - it was exactly the same: with
native fail; without extremely slow (test took about 70 min) but
all tests were successful. Additionally I removed the arm64-v8a
libscrypt to provoke the usage of the armeabi-v7a library and with
it the native key derivation test were successful too (about
60s)</p></div>oli_0x72tag:help.masterpassword.app,2014-09-03:Comment/384064352016-08-09T18:14:44Z2016-08-09T18:14:45Zseeming difference with android app<div><p>I started using your tool today and ran into a problem.<br>
Win8 64bit and Android 6 give me the same passwords,<br>
Win10 64bit on the other hand, does not.</p>
<p>I'll get back to you soon with test data and java versions.</p></div>ThisGuytag:help.masterpassword.app,2014-09-03:Comment/384064352016-10-12T19:40:51Z2016-10-12T19:40:56Zseeming difference with android app<div><p>Hello,</p>
<p>I ran into this problem with my new phone as well.</p>
<p>Was this issue resolved? Is it possible to get an older version
of MasterPasswordApp and try it with that one?</p>
<p>Thanks in advance.</p></div>Eugen