Grain of Salt generates CNF problems from shift-register-based stream ciphers, so that they can be attacked with SAT solvers such as CryptoMiniSat. Descriptions of Grain, Trivium, Bivium, HiTag2 and Crypto1 are included, and new ciphers are easy to add: you describe the shift registers and give the feedback, filter and output functions in algebraic normal form, one monomial per line.
You control how many output bits are known, how many key bits are given as help bits (--probBits), and how many problems to generate. For example, ./grainofsalt --num 100 --outputs 90 --crypto grain --probBits 70 generates 100 problems for Grain, with 90 bits of observed output and 70 randomly chosen help bits. The CNF is optimised before output, in part using the bundled espresso logic minimiser. The code is on GitHub, GPL-licensed.
Grain of Salt is described in Grain of Salt — An Automated Way to Test Stream Ciphers through SAT Solvers (Workshop on Tools for Cryptanalysis, 2010). Karsten Nohl contributed ideas and feedback.