예제 #1
0
파일: FileCryptor.cs 프로젝트: gisinka/RSA
        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} расшифрован");
        }
예제 #2
0
파일: FileCryptor.cs 프로젝트: gisinka/RSA
 public FileCryptor(ulong p, ulong q)
 {
     _rsa = new RSACryptor(p, q);
 }