Skip to content

jeklau/pwcalc-mobile

 
 

Repository files navigation

pwcalc-mobile

Mobile app to calculate strong cryptographic passwords.

ScreenShot

Available on the Google Play Store and on the Chrome Web Store.

Passwords are calculated like this:

password = secret word + alias | SHA1 | Base64

You chose a single secret and an alias for the service the password is needed for. E.g:

mysecret + gmail.com

This is combined to a single string

mysecretgmail.com

Next the cryptographic hash function SHA1 is applied to this compound word. It produces a 160-bit hash value typically rendered as hexadecimal number:

5e63 2f05 760b 5563 a1d9 ad9e e555 540d 7c19 9c65

These 40 digits are then taken as (binary) input for the Base64 function which produces the password:

XmMv BXYL VWOh 2a2e 5VVU DXwZ nGU=

This unique password cannot by any means be traced back to the secret word or alias.

In plain Linux the password can be calculated like this:

   echo -n "mysecretgmail.com" \
       | sha1sum \
       | xxd -r -p \
       | base64
    XmMvBXYLVWOh2a2e5VVUDXwZnGU=

Build Instructions for Android

This app is made with the Apache Cordova framework. See https://cordova.apache.org/ for details.

git clone https://github.com/pmorjan/pwcalc-mobile.git
cd pwcalc-mobile
cordova plugin add cordova-plugin-x-socialsharing
git apply 0001-remove-storage-permissions.patch
cordova plugin add cordova-universal-clipboard
cordova plugin add cordova-plugin-appversion
cordova platform add android
git apply 0002-remove-network-permissions.patch
cordova build

About

Mobile app to calculate strong cryptographic passwords

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 75.0%
  • HTML 18.5%
  • CSS 4.9%
  • Other 1.6%