Skip to content
Snippets Groups Projects
Commit 1f58e129 authored by Benoit Lavenier's avatar Benoit Lavenier
Browse files

[fix] fix #454 restoring previous order of salt/pwd in crypto service

parent 59e53ce8
No related branches found
No related tags found
No related merge requests found
...@@ -241,8 +241,8 @@ angular.module('cesium.crypto.services', ['ngResource', 'cesium.device.services' ...@@ -241,8 +241,8 @@ angular.module('cesium.crypto.services', ['ngResource', 'cesium.device.services'
this.connect = function(salt, password) { this.connect = function(salt, password) {
return $q(function(resolve, reject) { return $q(function(resolve, reject) {
var seed = that.scrypt.crypto_scrypt( var seed = that.scrypt.crypto_scrypt(
that.util.encode_utf8(salt),
that.util.encode_utf8(password), that.util.encode_utf8(password),
that.util.encode_utf8(salt),
that.constants.SCRYPT_PARAMS.N, that.constants.SCRYPT_PARAMS.N,
that.constants.SCRYPT_PARAMS.r, that.constants.SCRYPT_PARAMS.r,
that.constants.SCRYPT_PARAMS.p, that.constants.SCRYPT_PARAMS.p,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment