Rating:

`happiness` is popcnt. The encryption can be modeled as $Pubkey \times Message = Ciphertext$. Send two requests to the server to get a full set of equations to solve.

Original writeup (https://www.nevi.dev/2022/10/02/writeup-sekaictf-2022/#failproof-cryptography).