Git Product home page Git Product logo

crackingxoroshiro128plus's Introduction

crackingxoroshiro128plus's People

Contributors

lemire avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

crackingxoroshiro128plus's Issues

xoroshiftall.py bug

I made an error when trying to search for next soln
Last line of xoroshiftall.py :

s.add( x0 != soln[x0], y0 != soln[y0] )

What I intended were to remove 1 (solved) seed from search space.
But above rule added simultaneous equations instead.

-> comma acted like a AND (not OR)
-> possibly remove more than 1 state: (x0, ?) and (?, y0)

To remove just 1 state, I should use z3.Or

s.add( z3.Or(x0 != soln[x0], y0 != soln[y0]) )

The bug is probably not serious enough to give the wrong answer.
But with bigger states, say 256 bits, z3.Or is REQUIRED

see my xoshiro256-seed solver: https://github.com/achan001/xoshiro256-seed

cracked solution may be wrong

2 xoroshiro128+ random 64-bits numbers are not enough to produce a unqiue state.
It is possible your script will solve for the wrong state, i.e. wrong prediction.

Example: random sequence = 0xdfd1045768598cde , 0x86eae8a4b518de64, ...
There are 3 solutions:

state = 0x2369b5a08e5846c1 , 0xbc674eb6da01461d
state = 0x5a0b43baa54eccbb , 0x85c5c09cc30ac023
state = 0xdeadbeefdeadbeef , 0x123456789abcdef

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.