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} расшифрован"); }
public FileCryptor(ulong p, ulong q) { _rsa = new RSACryptor(p, q); }