Tags: rust re 

Rating: 2.0

If we examine the rust::encrypt function, we could see that each value is independent.
So by figuring out key that gets us the first value, we can use the same key for the rest.
Since we know that the flag starts with `i`, and the encrypt is a simple math equation that
the output correspond to the key value, we can do a quick bruteforce to get the key.

Once we have the key, we can run through the rust by looping through printable and try to match the next given output.

Original writeup (https://github.com/Team-Kirby/ictf-2024-writeups/blob/main/re/rust/solve.py).