Written by James McDonald

February 13, 2024

Recently our EDI supplier notified that they were changing their SFTP encryption and data integrity algorithms

I use https://api.phpseclib.com/3.0/phpseclib3/Net/SFTP.html to talk to their SFTP gateway. So I to confirm the change would not cause an issue I had to check my PHPSeclib3 SFTP client supported algorithms as follows:

php check_phpseclib3_supported_client_algorithms.php


# output
----------------------------------------
getSupportedCompressionAlgorithms
----------------------------------------
none
[email protected]
zlib


----------------------------------------
getSupportedEncryptionAlgorithms
----------------------------------------
[email protected]
[email protected]
aes128-ctr
aes192-ctr
aes256-ctr
aes128-cbc
aes192-cbc
aes256-cbc
3des-cbc
twofish128-ctr
twofish192-ctr
twofish256-ctr
twofish128-cbc
twofish192-cbc
twofish256-cbc
twofish-cbc
blowfish-ctr
blowfish-cbc
3des-ctr


----------------------------------------
getSupportedMACAlgorithms
----------------------------------------
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
hmac-sha2-256
hmac-sha2-512
[email protected]
[email protected]
hmac-sha1-96
hmac-sha1
hmac-md5-96
hmac-md5


----------------------------------------
getSupportedKEXAlgorithms
----------------------------------------
curve25519-sha256
[email protected]
ecdh-sha2-nistp256
ecdh-sha2-nistp384
ecdh-sha2-nistp521
diffie-hellman-group-exchange-sha256
diffie-hellman-group-exchange-sha1
diffie-hellman-group14-sha256
diffie-hellman-group14-sha1
diffie-hellman-group15-sha512
diffie-hellman-group16-sha512
diffie-hellman-group17-sha512
diffie-hellman-group18-sha512
diffie-hellman-group1-sha1


----------------------------------------
getSupportedHostKeyAlgorithms
----------------------------------------
ssh-ed25519
ecdsa-sha2-nistp256
ecdsa-sha2-nistp384
ecdsa-sha2-nistp521
rsa-sha2-256
rsa-sha2-512
ssh-rsa
ssh-dss

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

The reCAPTCHA verification period has expired. Please reload the page.

You May Also Like…

Run 7-zip from powershell

The performance of both the Windows and Powershell Zip utilities is abysmal The following Powershell script enables a...