MAC (Message Authentication Code) algorithms are what ProVide’s SFTP (SSH) server uses to verify the integrity of each message, confirming data hasn’t been tampered with in transit. ProVide’s default MAC algorithms are HMAC-SHA1, HMAC-SHA1-96, HMAC-MD5, HMAC-MD5-96, HMAC-SHA256, HMAC-SHA256-96, HMAC-SHA2-256, HMAC-SHA2-512, AES128-GCM, and AES256-GCM. You change which are offered by editing the [SFTP MAC Algorithms] section of the Settings.ini configuration file.
How to change the MAC algorithms #
- Back up your
Settings.inifile first. - Stop the ProVide service (changes to
Settings.iniare applied on startup). - Open
Settings.iniand edit the[SFTP MAC Algorithms]section to list the algorithms you want to allow, in order of preference. - Save the file and restart the ProVide service.
During each connection, ProVide and the client agree on the first MAC algorithm they both support, so the order and the set you list determine what actually gets used.
Available MAC algorithms #
The following algorithms are available for use in ProVide, listed under [SFTP MAC Algorithms] in Settings.ini:
[SFTP MAC Algorithms]
HMAC-SHA1
HMAC-SHA1-96
HMAC-MD5
HMAC-MD5-96
NONE
HMAC-RIPEMD160
HMAC-RIPEMD
HMAC-RIPEMD-OPENSSH
HMAC-SHA256
HMAC-SHA256-96
UMAC32
UMAC64
UMAC96
UMAC128
HMAC-SHA2-256
HMAC-SHA2-512
AES128-GCM
AES256-GCM
POLY1305
SHA2-256-ETM
SHA2-512-ETM
List only the algorithms you want to allow, keeping your preferred (strongest) options at the top.
Security note #
To harden your server, favour strong modern options such as the encrypt-then-MAC variants (SHA2-256-ETM, SHA2-512-ETM), the AES-GCM and POLY1305 authenticated modes, and HMAC-SHA2-256 / HMAC-SHA2-512. Drop the weak legacy entries where your clients allow it: HMAC-MD5, HMAC-MD5-96, and the SHA-1 and RIPEMD variants are considered weak, and NONE disables integrity checking entirely and should never be used in production. Always test with your actual SFTP clients after editing the list, because if the server and a client share no common MAC algorithm, that client won’t be able to connect.