cryptopals

Matasano's cryptopals challenges (cryptopals.com).
git clone git://git.jtobin.io/cryptopals.git
Log | Files | Refs | README | LICENSE

crackmt.sh (219B)


      1 #!/usr/bin/env bash
      2 declare -i i
      3 i=1690702400
      4 while (($i < 1690708000)); do
      5   val=$(mt19937 $i 1)
      6   echo "seed: $i, val: $val"
      7   if (($val == 1133750118)); then
      8     echo "seed is $i"
      9     exit
     10   else
     11     i+=1
     12   fi
     13 done
     14