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