Пример #1
0
        public static string Decode(BigInt[] message, BigInt d, BigInt n)
        {
            var text = new StringBuilder();

            foreach (var b in message)
            {
                var symbol = BigInt.TryToInt(BigInt.ModPow(b, d, n));
                text.Append((char)symbol);
            }

            return(text.ToString());
        }