public string Decrypt() { foreach (var ch in EncryptedMessage.Trim().Split(' ')) { var res = BigInteger.ModPow(int.Parse(ch), D, N); DecryptedMessage += Alphabet.GetCharRSA(((int)res + N) % N); } return(DecryptedMessage); }
public string Decrypt() { foreach (var ch in EncryptedMessage.Trim().Split(' ')) { var res = BigInteger.ModPow(int.Parse(ch), D, N); DecryptedMessage += Alphabet.GetCharRSA(((int)res + N) % N); } return(DecryptedMessage); }