Use with the Digital Bitbox hardware wallet to provide the highest level of security.
The source code is under development and may not be compatible with stable releases of the desktop app or MCU firmware.
Requires:
- Node.js and npm
- Cordova command line interface installed using npm
npm install -g cordova
- For Android devices: Android SDK
- For iOS devices: Xcode
Command line build and install:
git clone https://github.com/digitalbitbox/2FA-app.git
cd 2FA-app
cordova prepare
npm install
Insert after “buildscript” in “platforms/android/app/build.gradle”:
configurations.all {
resolutionStrategy {
force 'com.android.support:support-v4:27.1.0'
}
}
# After code edits:
browserify www/js/main_new.js -o www/js/app_new.js && browserify www/js/init.js -o www/js/app_init.js && browserify www/js/main_old.js -o www/js/app_old.js
cordova build android
To install on an Android phone, connect it to your computer and type cordova run android
. Developer permissions are required.
To install on an iPhone, replace android
with ios
and open the file platforms/ios/Digital Bitbox QR.xcodeproj
in Xcode. An iOS Developer Program membership, or a jailbroke phone, is required.
It's easier to develop in the browser. Setup with cordova platform add browser
. Start server with cordova run browser
. Your default browser starts, but to allow cross origin requests,
run chrome like chromium-browser --disable-web-security --user-data-dir
.
After code edits: browserify www/js/main_new.js -o www/js/app_new.js && browserify www/js/init.js -o www/js/app_init.js && browserify www/js/main_old.js -o www/js/app_old.js && cordova prepare browser
(and then just refresh the page).