few awk tools to handle the trezor HW wallet just test how factorial is growing $ ./faktor.awk 10 faktorial 1 : 1 moznosti faktorial 2 : 2 moznosti faktorial 3 : 6 moznosti faktorial 4 : 24 moznosti faktorial 5 : 120 moznosti faktorial 6 : 720 moznosti faktorial 7 : 5,040 moznosti faktorial 8 : 40,320 moznosti faktorial 9 : 362,880 moznosti faktorial 10 : 3,628,800 moznosti
3,628,800 moznosti
And now we can check the safety of the seed. $ ./trezor.awk Pouzitie: ./trezor.awk pocetPlatnychSlov pocetCelkom zvysPocetCelkom pocetPlatnychSlov (0) nesmie byt vacsi ako pocetCelkom (0) priklad: ./trezor.awk 5 5 1
počet Slov|faktorial | | | | | | | | (k) | n=k | n= k+ 1 | n= k+ 2 | n= k+ 4 | n= k+ 8 | n= k+ 16 | n= k+ 32 | n=k+ 36 | ||||||||__________| 1 | 1| 2| 3| 5| 9| 17| 33| 60| 2 | 2| 6| 12| 30| 90| 306| 1,122| 3,540| 3 | 6| 24| 60| 210| 990| 5,814| 39,270| 205,320| 4 | 24| 120| 360| 1,680| 11,880| 116,280| 1,413,720| 1.17E+07| 5 | 120| 720| 2,520| 15,120| 154,440| 2,441,880| 5.231E+07| 6.554E+08| 6 | 720| 5,040| 20,160| 151,200| 2,162,160| 5.372E+07| 1.988E+09| 3.605E+10| 7 | 5,040| 40,320| 181,440| 1,663,200| 3.243E+07| 1.236E+09| 7.752E+10| 1.946E+12| 8 | 40,320| 362,880| 1,814,400| 1.996E+07| 5.189E+08| 2.965E+10| 3.101E+12| 1.032E+14| 9 | 362,880| 3,628,800| 1.996E+07| 2.595E+08| 8.822E+09| 7.414E+11| 1.271E+14| 5.365E+15| 10 | 3,628,800| 3.992E+07| 2.395E+08| 3.632E+09| 1.588E+11| 1.928E+13| 5.34E+15| 2.736E+17| 12 | 4.79E+08| 6.227E+09| 4.359E+10| 8.718E+11| 6.034E+13| 1.457E+16| 1.01E+19| 6.703E+20| 14 | 8.718E+10| 1.308E+12| 1.046E+13| 2.668E+14| 2.788E+16| 1.268E+19| 2.091E+22| 1.512E+24| 16 | 2.092E+13| 3.557E+14| 3.201E+15| 1.014E+17| 1.539E+19| 1.258E+22| 4.718E+25| 3.13E+27| 18 | 6.402E+15| 1.216E+17| 1.216E+18| 4.683E+19| 1E+22| 1.411E+25| 1.156E+29| 5.922E+30| 20 | 2.433E+18| 5.109E+19| 5.62E+20| 2.585E+22| 7.562E+24| 1.778E+28| 3.065E+32| 1.02E+34| 22 | 1.124E+21| 2.585E+22| 3.102E+23| 1.68E+25| 6.579E+27| 2.5E+31| 8.773E+35| 1.591E+37| 24 | 6.204E+23| 1.551E+25| 2.016E+26| 1.27E+28| 6.526E+30| 3.9E+34| 2.702E+39| 2.237E+40| 26 | 4.033E+26| 1.089E+28| 1.524E+29| 1.105E+31| 7.322E+33| 6.715E+37| 8.933E+42| 2.818E+43| 28 | 3.049E+29| 8.842E+30| 1.326E+32| 1.096E+34| 9.226E+36| 1.271E+41| 3.162E+46| 3.162E+46| 30 | 2.653E+32| 8.223E+33| 1.316E+35| 1.23E+37| 1.297E+40| 2.63E+44| 1.196E+50| 3.137E+49| 40 | 8.159E+47| 3.345E+49| 7.025E+50| 1.108E+53| 3.079E+56| 3.398E+61| 2.327E+68| 3.42E+63| 50 | 3.041E+64| 1.551E+66| 4.033E+67| 9.618E+69| 5.83E+73| 2.602E+79| 1.807E+87| 2.293E+75| 60 | 8.321E+81| 5.076E+83| 1.573E+85| 5.287E+87| 6.151E+91| 9.012E+97|4.727E+106| 8.321E+81| 70 |1.198E+100|8.505E+101|3.062E+103|1.378E+106|2.809E+110|1.158E+117|3.654E+126| 8.321E+81| 80 |7.157E+118|5.797E+120|2.377E+122|1.381E+125| 4.6E+129| 4.74E+136|7.504E+146| 8.321E+81| 90 |1.486E+138|1.352E+140|6.219E+141|4.531E+144|2.338E+149|5.479E+156|3.753E+167| 8.321E+81|