Fix link generation bug

pull/1/head
yflory 2019-12-17 11:48:23 +01:00
parent 6a712a7b52
commit 5174472329
1 changed files with 2 additions and 1 deletions

View File

@ -2,8 +2,9 @@
var factory = function (Hash, Crypt, Nacl, Scrypt/*, Util, Cred, nThen */) {
var Invite = {};
Invite.deriveSeeds = function (seed) {
Invite.deriveSeeds = function (safeSeed) {
// take the hash of the provided seed
seed = safeSeed.replace(/\-/g, '/');
var u8_seed = Nacl.hash(Nacl.util.decodeBase64(seed));
// hash the first half again for scrypt's input