Ejemplo n.º 1
0
        private static void FromRSA()
        {
            Console.Clear();
            Console.WriteLine("ENCRYPT OPERATION SELECTED...");

            Console.WriteLine("Enter with Text Value:");
            var textValue = Console.ReadLine();

            if (string.IsNullOrWhiteSpace(textValue))
            {
                Reset("Invalid value. Try Again.");
            }

            var result = Cryptographer.FromRsa(textValue, parameters);

            Reset($"Result value is: {result}");
        }