Calculate Md5 checksum

Hello, I’m new in n8n and I’m trying to calculate the md5 hash of the file downloaded via the FTP node.
I tried to use the crypto node but it didn’t work also I tried the execution command md5sum which needs to provide the fileName. However, the file is coming from the FTP node downloaded.
Can you please provide me the solution

Hi @rahma_sayadi, welcome to the community :tada:

The crypto node can perform its actions against JSON data but not binary data unfortunately (these are different elements in n8n’s data structure).

So when the data you’d like to perform the Crypto node’s operation against is read from a file you’d first need to convert it into JSON data. This could be done using the Move Binary Data node.

Hello @MutedJam
thanks for your response, I will try it.

1 Like