Fix link generation bug
parent
6a712a7b52
commit
5174472329
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue