add delayed_select() (chrome workaround); also calculate old version of passy (not "passfied"); minor comment cleanup

This commit is contained in:
swaits committed 2010-11-23 18:28:40 -08:00
1 parent 1050fa4d8d
commit 02b8e3f150
2 files changed
+22 -5

No files matched your search

+6 -1
View File
@@ -99,9 +99,14 @@ var passy = function(text,secret)
var hmac = new jsSHA(text.toLowerCase(), "ASCII").getHMAC(secret, "ASCII", "HEX");
// split into four 10 character strings and "passify", and return the array
// include the unpassified versions afterward
return [
passify(hmac.slice( 0,10)),
passify(hmac.slice(10,20)),
passify(hmac.slice(20,30)),
passify(hmac.slice(30,40))];
passify(hmac.slice(30,40)),
hmac.slice( 0,10),
hmac.slice(10,20),
hmac.slice(20,30),
hmac.slice(30,40)];
}