+ var triesPerSecond=10000000000; //assumed number of tries per second
+ var hackTime=Math.pow(2,wordCount*10/3)/triesPerSecond; //get number of bits of unknown data per card
+ if (hackTime<1) {
+ hackTime="<1 second";
+ } else if (hackTime<86400) {
+ hackTime=Math.floor(hackTime)+" seconds";
+ } else if(hackTime<31557600) {
+ hackTime=Math.floor(hackTime/86400)+" days";
+ } else {
+ hackTime=Math.floor(hackTime/31557600)+" years";
+ }
+ DOM.phraseSplitWarn.html("Time to hack with only one card: "+hackTime);