Problem 61046. Decipher Message Using Prime of Primitive Root of Two Sequence Key
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
Solution Comments
Show commentsProblem Recent Solvers2
Suggested Problems
More from this Author59
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!