From 1f58e1293f89e3cba96e765c33bc066771d73ebb Mon Sep 17 00:00:00 2001 From: blavenie <benoit.lavenier@e-is.pro> Date: Wed, 17 May 2017 15:40:41 +0200 Subject: [PATCH] [fix] fix #454 restoring previous order of salt/pwd in crypto service --- www/js/services/crypto-services.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/js/services/crypto-services.js b/www/js/services/crypto-services.js index bc5dedac1..f9119d841 100644 --- a/www/js/services/crypto-services.js +++ b/www/js/services/crypto-services.js @@ -241,8 +241,8 @@ angular.module('cesium.crypto.services', ['ngResource', 'cesium.device.services' this.connect = function(salt, password) { return $q(function(resolve, reject) { var seed = that.scrypt.crypto_scrypt( - that.util.encode_utf8(salt), that.util.encode_utf8(password), + that.util.encode_utf8(salt), that.constants.SCRYPT_PARAMS.N, that.constants.SCRYPT_PARAMS.r, that.constants.SCRYPT_PARAMS.p, -- GitLab