mirror of https://github.com/BTCPrivate/copay.git
commit
d58da529c6
|
@ -97,10 +97,12 @@ var config = {
|
|||
host: 'test.insight.is',
|
||||
port: 3001
|
||||
},
|
||||
verbose: 1,
|
||||
passphrase: {
|
||||
iterations: 1,
|
||||
storageSalt: 'mjuBtGybi/4=',
|
||||
},
|
||||
themes: ['default'],
|
||||
iterations: 1000,
|
||||
storageSalt: 'mjuBtGybi/4=', // choose your own salt (base64)
|
||||
verbose: 1,
|
||||
};
|
||||
|
||||
var log = function() {
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
function Passphrase(config) {
|
||||
config = config || {};
|
||||
this.salt = config.storageSalt || 'mjuBtGybi/4=';
|
||||
this.salt = config.salt || 'mjuBtGybi/4=';
|
||||
this.iterations = config.iterations || 1000;
|
||||
};
|
||||
|
||||
|
|
|
@ -2,6 +2,6 @@
|
|||
|
||||
var passphrase;
|
||||
angular.module('copay.passphrase').factory('Passphrase', function($rootScope) {
|
||||
passphrase = passphrase || new copay.Passphrase(config);
|
||||
passphrase = passphrase || new copay.Passphrase(config.passphrase);
|
||||
return passphrase;
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue