GetHashAlgorithm.cs 553 B

1234567891011121314151617
  1. using System;
  2. using System.Net;
  3. using System.Net.FtpClient;
  4. namespace Examples {
  5. public class GetHashAlgorithmExample {
  6. public static void GetHashAlgorithm() {
  7. using (FtpClient cl = new FtpClient()) {
  8. cl.Credentials = new NetworkCredential("user", "pass");
  9. cl.Host = "some.ftpserver.on.the.internet.com";
  10. Console.WriteLine("The server is using the following algorithm for computing hashes: {0}",
  11. cl.GetHashAlgorithm());
  12. }
  13. }
  14. }
  15. }