You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

3 lines
817 KiB

6 years ago
(window.webpackJsonp=window.webpackJsonp||[]).push([[0],{1053:function(e,a){e.exports=function(){throw new Error("define cannot be used indirect")}},1063:function(e,a,i){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.scorePassword=function(e){if(0===e.length)return null;var a=t.slice();a.push(n.default.get().getUserIdLocalpart());var i=(0,r.default)(e,a);if(e.includes(" ")){var o=(0,r.default)(e.replace(/ /g,""),a);o.score<i.score&&(i=o)}for(var l=0;l<i.feedback.suggestions.length;++l)i.feedback.suggestions[l]=(0,s._t)(i.feedback.suggestions[l]);i.feedback.warning&&(i.feedback.warning=(0,s._t)(i.feedback.warning));return i};var r=o(i(1064)),n=o(i(9)),s=i(2);function o(e){return e&&e.__esModule?e:{default:e}}var t=["riot","matrix"];(0,s._td)("Use a few words, avoid common phrases"),(0,s._td)("No need for symbols, digits, or uppercase letters"),(0,s._td)("Use a longer keyboard pattern with more turns"),(0,s._td)("Avoid repeated words and characters"),(0,s._td)("Avoid sequences"),(0,s._td)("Avoid recent years"),(0,s._td)("Avoid years that are associated with you"),(0,s._td)("Avoid dates and years that are associated with you"),(0,s._td)("Capitalization doesn't help very much"),(0,s._td)("All-uppercase is almost as easy to guess as all-lowercase"),(0,s._td)("Reversed words aren't much harder to guess"),(0,s._td)("Predictable substitutions like '@' instead of 'a' don't help very much"),(0,s._td)("Add another word or two. Uncommon words are better."),(0,s._td)('Repeats like "aaa" are easy to guess'),(0,s._td)('Repeats like "abcabcabc" are only slightly harder to guess than "abc"'),(0,s._td)("Sequences like abc or 6543 are easy to guess"),(0,s._td)("Recent years are easy to guess"),(0,s._td)("Dates are often easy to guess"),(0,s._td)("This is a top-10 common password"),(0,s._td)("This is a top-100 common password"),(0,s._td)("This is a very common password"),(0,s._td)("This is similar to a commonly used password"),(0,s._td)("A word by itself is easy to guess"),(0,s._td)("Names and surnames by themselves are easy to guess"),(0,s._td)("Common names and surnames are easy to guess"),(0,s._td)("Straight rows of keys are easy to guess"),(0,s._td)("Short keyboard patterns are easy to guess")},1064:function(e,a,i){var r,n,s,o,t,l;n=i(1065),s=i(347),t=i(1067),r=i(1068),o=function(){return(new Date).getTime()},l=function(e,a){var i,l,c,d,u,m,h,g,p,b,y;for(null==a&&(a=[]),b=o(),p=[],c=0,d=a.length;c<d;c++)"string"!=(h=typeof(i=a[c]))&&"number"!==h&&"boolean"!==h||p.push(i.toString().toLowerCase());for(m in n.set_user_input_dictionary(p),u=n.omnimatch(e),(g=s.most_guessable_match_sequence(e,u)).calc_time=o()-b,l=t.estimate_attack_times(g.guesses))y=l[m],g[m]=y;return g.feedback=r.get_feedback(g.score,g.sequence),g},e.exports=l},1065:function(e,a,i){var r,n,s,o,t,l,c,d,u,m,h,g;for(h in d=i(1066),l=i(528),g=i(347),c=function(e){var a,i,r,n;for(n={},a=1,r=0,i=e.length;r<i;r++)n[e[r]]=a,a+=1;return n},o={},d)u=d[h],o[h]=c(u);n={qwerty:l.qwerty,dvorak:l.dvorak,keypad:l.keypad,mac_keypad:l.mac_keypad},s={a:["4","@"],b:["8"],c:["(","{","[","<"],e:["3"],g:["6","9"],i:["1","!","|"],l:["1","|","7"],o:["0"],s:["$","5"],t:["+","7"],x:["%"],z:["2"]},t={recent_year:/19\d\d|200\d|201\d/g},r={4:[[1,2],[2,3]],5:[[1,3],[2,3]],6:[[1,2],[2,4],[4,5]],7:[[1,3],[2,3],[4,5],[4,6]],8:[[2,4],[4,6]]},m={empty:function(e){var a;return 0===function(){var i;for(a in i=[],e)i.push(a);return i}().length},extend:function(e,a){return e.push.apply(e,a)},translate:function(e,a){var i;return function(){var r,n,s,o;for(o=[],n=0,r=(s=e.split("")).length;n<r;n++)i=s[n],o.push(a[i]||i);return o}().join("")},mod:function(e,a){return(e%a+a)%a},sorted:function(e){return e.sort(function(e,a){return e.i-a.i||e.j-a.j})},omnimatch:function(e){var a,i,r,n,s;for(n=[],s=0,a=(r=[this.dictionary_match,this.reverse_dictionary_match,this.l33t_match,this.spatial_match,this.repeat_match,this.sequence_match,this.regex_match,this.date_match]).length;s<a;s++)i=r[s],this.extend(n,i.call(this,e));return this.sorted(n)},dictionary_match:function(e,a){var i,r,n,s,t,l,c,d,u,m,h,g,p,b;f
/*! @source http://purl.eligrey.com/github/FileSaver.js/blob/master/FileSaver.js */e.exports?e.exports.saveAs=n:null!==i(1053)&&null!==i(529)&&(void 0===(r=function(){return n}.call(a,i,a,e))||(e.exports=r))},528:function(e,a){var i;i={qwerty:{"!":["`~",null,null,"2@","qQ",null],'"':[";:","[{","]}",null,null,"/?"],"#":["2@",null,null,"4$","eE","wW"],$:["3#",null,null,"5%","rR","eE"],"%":["4$",null,null,"6^","tT","rR"],"&":["6^",null,null,"8*","uU","yY"],"'":[";:","[{","]}",null,null,"/?"],"(":["8*",null,null,"0)","oO","iI"],")":["9(",null,null,"-_","pP","oO"],"*":["7&",null,null,"9(","iI","uU"],"+":["-_",null,null,null,"]}","[{"],",":["mM","kK","lL",".>",null,null],"-":["0)",null,null,"=+","[{","pP"],".":[",<","lL",";:","/?",null,null],"/":[".>",";:","'\"",null,null,null],0:["9(",null,null,"-_","pP","oO"],1:["`~",null,null,"2@","qQ",null],2:["1!",null,null,"3#","wW","qQ"],3:["2@",null,null,"4$","eE","wW"],4:["3#",null,null,"5%","rR","eE"],5:["4$",null,null,"6^","tT","rR"],6:["5%",null,null,"7&","yY","tT"],7:["6^",null,null,"8*","uU","yY"],8:["7&",null,null,"9(","iI","uU"],9:["8*",null,null,"0)","oO","iI"],":":["lL","pP","[{","'\"","/?",".>"],";":["lL","pP","[{","'\"","/?",".>"],"<":["mM","kK","lL",".>",null,null],"=":["-_",null,null,null,"]}","[{"],">":[",<","lL",";:","/?",null,null],"?":[".>",";:","'\"",null,null,null],"@":["1!",null,null,"3#","wW","qQ"],A:[null,"qQ","wW","sS","zZ",null],B:["vV","gG","hH","nN",null,null],C:["xX","dD","fF","vV",null,null],D:["sS","eE","rR","fF","cC","xX"],E:["wW","3#","4$","rR","dD","sS"],F:["dD","rR","tT","gG","vV","cC"],G:["fF","tT","yY","hH","bB","vV"],H:["gG","yY","uU","jJ","nN","bB"],I:["uU","8*","9(","oO","kK","jJ"],J:["hH","uU","iI","kK","mM","nN"],K:["jJ","iI","oO","lL",",<","mM"],L:["kK","oO","pP",";:",".>",",<"],M:["nN","jJ","kK",",<",null,null],N:["bB","hH","jJ","mM",null,null],O:["iI","9(","0)","pP","lL","kK"],P:["oO","0)","-_","[{",";:","lL"],Q:[null,"1!","2@","wW","aA",null],R:["eE","4$","5%","tT","fF","dD"],S:["aA","wW","eE","dD","xX","zZ"],T:["rR","5%","6^","yY","gG","fF"],U:["yY","7&","8*","iI","jJ","hH"],V:["cC","fF","gG","bB",null,null],W:["qQ","2@","3#","eE","sS","aA"],X:["zZ","sS","dD","cC",null,null],Y:["tT","6^","7&","uU","hH","gG"],Z:[null,"aA","sS","xX",null,null],"[":["pP","-_","=+","]}","'\"",";:"],"\\":["]}",null,null,null,null,null],"]":["[{","=+",null,"\\|",null,"'\""],"^":["5%",null,null,"7&","yY","tT"],_:["0)",null,null,"=+","[{","pP"],"`":[null,null,null,"1!",null,null],a:[null,"qQ","wW","sS","zZ",null],b:["vV","gG","hH","nN",null,null],c:["xX","dD","fF","vV",null,null],d:["sS","eE","rR","fF","cC","xX"],e:["wW","3#","4$","rR","dD","sS"],f:["dD","rR","tT","gG","vV","cC"],g:["fF","tT","yY","hH","bB","vV"],h:["gG","yY","uU","jJ","nN","bB"],i:["uU","8*","9(","oO","kK","jJ"],j:["hH","uU","iI","kK","mM","nN"],k:["jJ","iI","oO","lL",",<","mM"],l:["kK","oO","pP",";:",".>",",<"],m:["nN","jJ","kK",",<",null,null],n:["bB","hH","jJ","mM",null,null],o:["iI","9(","0)","pP","lL","kK"],p:["oO","0)","-_","[{",";:","lL"],q:[null,"1!","2@","wW","aA",null],r:["eE","4$","5%","tT","fF","dD"],s:["aA","wW","eE","dD","xX","zZ"],t:["rR","5%","6^","yY","gG","fF"],u:["yY","7&","8*","iI","jJ","hH"],v:["cC","fF","gG","bB",null,null],w:["qQ","2@","3#","eE","sS","aA"],x:["zZ","sS","dD","cC",null,null],y:["tT","6^","7&","uU","hH","gG"],z:[null,"aA","sS","xX",null,null],"{":["pP","-_","=+","]}","'\"",";:"],"|":["]}",null,null,null,null,null],"}":["[{","=+",null,"\\|",null,"'\""],"~":[null,null,null,"1!",null,null]},dvorak:{"!":["`~",null,null,"2@","'\"",null],'"':[null,"1!","2@",",<","aA",null],"#":["2@",null,null,"4$",".>",",<"],$:["3#",null,null,"5%","pP",".>"],"%":["4$",null,null,"6^","yY","pP"],"&":["6^",null,null,"8*","gG","fF"],"'":[null,"1!","2@",",<","aA",null],"(":["8*",null,null,"0)","rR","cC"],")":["9(",null,null,"[{","lL","rR"],"*":["7&",null,null,"9(","cC","gG"],"+":["/?","]}",null,"\\|",null,"-_"],",":["'\"","2@","3#",".>","oO","aA"],"-":["sS","/?","=+",null,null,"zZ"],".":[",<","3#","4$","pP","eE","oO"],"/":["lL","[{","]}","=+","-_","sS"],0:["9(",null,null,"[{","lL","rR"],
//# sourceMappingURL=0.js.map