Anbin Xiong
Anbin Xiong
> It should return (-5) mod p where p is the plaintext base. however, it return a wrong answer 
> It should return (-5) mod p where p is the plaintext base. and where p is 1021 in my code. THX very much.
> -5 mod 1021 == 1016 > When you decrypt you should add -1021 to the result if it's larger than 510. THX