Provided a message with all characters <= 255 (ascii) as an input, decode the padded message (removing the random character pad), XORing input converted to binary vector (8 bits each) with the inputted prime having primitive root of two as the key. The key is the repeated sequence of 2^x modulo prime key input starting from x=0 until the cycle repeats (unpadded zero binary represented vector of the repeated sequence). After XORing, remove the padded front and return the character array as output.

Solution Stats

2 Solutions

2 Solvers

Last Solution submitted on Oct 23, 2025

Last 200 Solutions

Solution Comments

Show comments
Loading...