Grain of Salt in your browser

Turn a stream cipher into a SAT problem and solve it with CryptoMiniSat, all in your browser. Given some keystream and a few "help" bits of the internal state, the solver recovers the rest of the state.

Cipher

Each line of a function file is a monomial (an AND of its variables), and the lines are XORed. srX-N is bit N of shift register X, fX filter function X, x the constant 1. See the README.

Configuration

Help bits that are not correct are guessed at random, as in an attack: a wrong guess makes the problem unsatisfiable.

Generated problem

Real internal state

Generate a problem first.

CNF

Solution