I am trying to calculate the digests of a file using md5 algorithm. I am asked to format the output to be in binary not hex. So this is my command in terminal (I use mac):
openssl dgst -md5 -binary ~/Documents/msg_Joudi.txt > ~/Documents/hash.txt
this generates hash.txt file, but its content is not in binary format, and I do not know where is the error.
$ file -I ~/Desktop/hash.txtfrom terminal to check the file type, and it returned:/Desktop/hash.txt: application/octet-stream; charset=binaryWhat did you get instead of binary?