Esempio n. 1
0
        public static void Decrypt(string filename, BigInt d, BigInt n)
        {
            var path  = $"{Directory.GetCurrentDirectory()}\\{filename}";
            var input = File.ReadAllBytes(path);

            File.WriteAllBytes(path, RSACryptor.Decrypt(input, d, n));
            Console.WriteLine($"{path} расшифрован");
        }
Esempio n. 2
0
 public FileCryptor(ulong p, ulong q)
 {
     _rsa = new RSACryptor(p, q);
 }