This project is read-only.

Cryptographic Algorithm Error

Jul 20, 2011 at 9:19 AM


I have implemented this component into an application which is connecting to a SFTP server. When we run the code from a Windows 7 machine everything is working fine.

But running the code from a Windows XP Professional machine the following error message is returned when connecting to the same SFTP server "The specified cryptographic algorithm is not supported on this platform." ({"The specified cryptographic algorithm is not supported on this platform."})

The following code is used:

SftpClient sftpClient = new SftpClient(this.ServerNaam, this.GebruikersNaam, this.Wachtwoord);



The error is returned when the line sftpClient.Connect(); is executed. Are we missing a component on the Windows XP Professional machines that you know we have to install.

Any help is appriciated.


Jul 20, 2011 at 3:36 PM

Please check this thread and let me know if you still have a questions.




Jul 21, 2011 at 8:54 AM

I made the changes suggested by jncodex and it works like a charm on Windows XP now.
Thanks mate!!!

Below again the change that make things work on XP:
In "KeyExchangeDiffieHellmanGroupExchangeSha256.cs" file, repaced "new SHA256CryptoServiceProvider()" with "SHA256.Create()".