Fixing encrypted
This commit is contained in:
parent
35bab383b0
commit
126a57d5ab
5 changed files with 7 additions and 13 deletions
|
|
@ -17,7 +17,7 @@ InsightStorage.prototype.setCredentials = function(email, password, opts) {
|
|||
};
|
||||
|
||||
InsightStorage.prototype.getItem = function(name, callback) {
|
||||
var key = cryptoUtil.kdf(this.password, this.email);
|
||||
var key = cryptoUtil.kdf(this.password + this.email);
|
||||
var secret = cryptoUtil.kdf(key, this.password);
|
||||
var encodedEmail = encodeURIComponent(this.email);
|
||||
var retrieveUrl = this.storeUrl + '/retrieve/' + encodedEmail;
|
||||
|
|
@ -35,7 +35,7 @@ InsightStorage.prototype.getItem = function(name, callback) {
|
|||
};
|
||||
|
||||
InsightStorage.prototype.setItem = function(name, value, callback) {
|
||||
var key = cryptoUtil.kdf(this.password, this.email);
|
||||
var key = cryptoUtil.kdf(this.password + this.email);
|
||||
var secret = cryptoUtil.kdf(key, this.password);
|
||||
var registerUrl = this.storeUrl + '/register';
|
||||
this.request.post({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue