phw / android-pwdhash Goto Github PK
View Code? Open in Web Editor NEWA password hash implementation for Android.
License: Other
A password hash implementation for Android.
License: Other
I've seen that keepass4android implements an android keyboard probably so it can input the data directly. That would be very nice also for pwdhash. I have at least one app where it is impossible to paste input into and using pwdhash as a keyboard would likely resolve this issue for me.
Hi,
Thanks again for the app. Been using it for some time!
I had an issue crop up today that I haven't seen before. I just created an account on my PC, and went to log in on my phone, but couldn't because the passwords didn't match. I compared the output, and the app is giving me a hash 1 character longer than the browser extension I use and the pwdhash website. The app added a trailing character (not NULL or space), the hash is otherwise identical.
Unfortunately, some attempts are re-creating the issue have failed. I probed similar length URL + user password combos, and similar patters of characters/special characters, but the only case the issue shows up is with the URL and password I need to use.
Obviously I want to avoid giving up the URL and my user password, and I'm also pretty sure that this is not enough information for you to do any serious troubleshooting. En lieu of other ideas, as a start I was hoping that you could show me how you resolved the previous issue I submitted, regarding trailing NULL characters being appended. Somehow you were able to determine that the "official" pwdhash also had the trailing NULL characters, though it isn't evident from the browser. Just hoping that seeing what the raw output of the official algorithm is may give some clue.
Thanks again!
There are occasional crashes on Android 4.3 when copying the password to the clipboard. Seems to be related to this bug:
https://code.google.com/p/android/issues/detail?id=58043
It is an Android bug, but I'll implement a workaround.
Stacktrace:
java.lang.IllegalStateException: beginBroadcast() called while already in a broadcast
at android.os.Parcel.readException(Parcel.java:1439)
at android.os.Parcel.readException(Parcel.java:1385)
at android.content.IClipboard$Stub$Proxy.setPrimaryClip(IClipboard.java:171)
at android.content.ClipboardManager.setPrimaryClip(ClipboardManager.java:125)
at android.content.ClipboardManager.setText(ClipboardManager.java:208)
at com.uploadedlobster.PwdHash.activities.PwdHashApp.copyToClipboard(PwdHashApp.java:261)
at com.uploadedlobster.PwdHash.activities.PwdHashApp$4.onClick(PwdHashApp.java:218)
at android.view.View.performClick(View.java:4240)
at android.view.View$PerformClick.run(View.java:17721)
at android.os.Handler.handleCallback(Handler.java:730)
at android.os.Handler.dispatchMessage(Handler.java:92)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:5103)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:525)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:737)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
at dalvik.system.NativeStart.main(Native Method)
As your app is BSD licensed and thus Open Source it would be great if it could also be published to F-Droid.
(Thanks for your work btw!)
This would backup the list of website URLs.
See http://developer.android.com/guide/topics/data/backup.html
This would be useful for manual backup via ADB as Helium Backup [1] does. I think for this to work it is not necessary to register the App for the Android Backup Service [2](which would cause a cloud backup of eventually sensitive data).
[1] https://play.google.com/store/apps/details?id=com.koushikdutta.backup&hl=de
[2] http://developer.android.com/guide/topics/data/backup.html#BackupKey
Hi,
First, thanks for the hash app. Seems to work well, just one issue. I use a long password, which often results in a 20+ character hash. When generating hashes this long, the app seems to append 4 trailing spaces, which obviously cause logins to fail if not removed.
The hash itself is correct. I do believe it has to do with the length of the generated hash, as trying it with a shorter password does not produce the trailing spaces.
Thanks!
As stated above, adding an option, in the menu for example, to do sha-1 based hmac hashing of the password would be really nice. It doesn't have to be default, the only reason I bring this up is because there are numerous flaws in md5 and thus anything that uses it to generate pseudo-random passwords is doomed to passwords that are the same for different inputs. Whereas sha-1 doesn't have this flaw(yet).
So anyway, as I've stated I'd love to have the option of choosing between md5 and sha-1 based hashing via a menu option inside of the application. If no one here picks this up, I may delve into it later on my own and try to figure out some way to do it. But I think it would be a really nice option to have. The options could be as follows;
PWD-hash compliant(standard)
Sha-1 non-compliant(stronger)
Since not only does sha-1 result in more possible values, it also gives you more characters with which to make the password so that it's always unique. It's certainty not as fast as md5, but considering how fast android phones are these days it should work very well, as I was able to do it via javascript at a thousand hashes a second on an old vzw droid.
I have not had a great play with this but is seems to me it lacks an initial seed value.
For example if I want both my and my wife's phone to both give back the same hash for say "amazon.com/password" and for no-one else to be able to generate same hash I would need to enter a common seed on both installations that would participate in the hash.
When opened from the Appsi sidebar, PwdHash immediately crashes with "Unfortunately, Password Hash has stopped". No problem to open it from the drawer, moreover other apps work with Appsi.
(Nexus 4, Stock-Android 4.3)
Hello good people;
I have been using your pwdhash app for Android for sometime now. I initially started hashing my own passwords using keygrinder.com but the developer, Alex King, died in 2015 and until the domain recently expired, the website did not use https:// anyway.
I have been aware for sometime that the pwdhash implementation from Stamford had significant vulnerabilities that were described here: researchgate
I have found an alternative implementation of pwdhash that appears to address the concerns in the article above: https://gwuk.github.io/PwdHash2/pwdhash2/
Would you consider upgrading your implementation to allow a customised client side salt like the site above? Additionally - what would be your thoughts about creating a website that allowed for password generation irrespective of OS? The Stamford site is no longer being supported and will likely die at some stage (I assume) and doesn't support the user defined salt.
The android keyboards tend to correct to uppercase the first letter, this appears to break the hash. It would be better if the app lowercased the site name and maybe also hint the entry box to not uppercase the first letter somehow.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.