Public key: $(e,n) = (17, 1 066 601)$
Private key: $d = 939 293$
Message: 452423293428
Table:
Digital signature:
I want to decrypt and encrypt the message by:
$P = C^d (mod 1 066 601)$
$C = P^e (mod 1 066 601)$
My book says, I have to group the resulting numbers into blocks of 2m decimal digits, where 2m is the largest positive even integer such that all blocks of number equivalents corresponding to m letters (viewed as a single integer with 2m decimal digits) are less than n, e.g. if $6565<n<656565$ then $m = 2$
So:
$C \equiv 452423^{939293} \equiv 593991 (mod 1 066 601)$
$C \equiv 293428^{939293} \equiv 85260 (mod 1 066 601)$
I also tried blocks of 5 and 7 and 5 works!
Why do you have to group the resulting number into blocks of 2m decimal digits, where 2m is the largest positive even integer?

