I'm working on an Internet Draft (RFC in progress) to create a new FTP command to be used by clients to request cryptographic hashes of files. A number of vendors & applications plan to support it.
From what I've seen, this software supports the non-standard XMD5, XSHA1, XSHA256, XSHA512 commands.
I'm soliciting comments and suggestions on the Internet Draft text. Your feedback is most welcome!
Here's how it works:
Example of HASH client request:
HASH server response with Positive Completion code and the requested
hash using the currently selected algorithm:
OPTS is used to query or change the algorithm:
C> OPTS HASH
S> 200 SHA-1
C> OPTS HASH SHA-512
S> 200 SHA-512
C> OPTS HASH CRC-37
S> 501 Unknown algorithm, current selection not changed
Support is advertised in FEAT responses:
S> 211-Extensions supported:
S> HASH SHA-1*;MD5
S> 211 END