From 7f1783294fd64751d392e3fdafa4f0a33be4dac1 Mon Sep 17 00:00:00 2001 From: brantje Date: Sun, 2 Oct 2016 13:02:00 +0200 Subject: [PATCH] Encrypt credential with shared key --- js/app/controllers/share.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/js/app/controllers/share.js b/js/app/controllers/share.js index 310bd33a..c4e1ce39 100644 --- a/js/app/controllers/share.js +++ b/js/app/controllers/share.js @@ -135,6 +135,10 @@ angular.module('passmanApp') ShareService.generateSharedKey(20).then(function(key){ console.log(key); + + + var encryptedSharedCredential = ShareService.encryptSharedCredential($scope.storedCredential, key); + var list = $scope.share_settings.credentialSharedWithUserAndGroup; console.log(list); for (var i = 0; i < list.length; i++){