I'm writing a code in C++ and I wish to get the md5 checksum of a certain string. I know I can run system("echo "myStirng" | md5sum > some_file.txt") and then read the file. I'm writing code for an embedded system and due to performance issues I don't wan't to use file operations. also, I can't use any openSSL functions in my code. I did my searching and all the answers I came across either included some file operations or used openSSL functions. Is there a way to get the md5 checksum without using file operations and without using openSSL? maybe running the linux command md5sum as a different process from the code like the C function system does, but returning the checksum hex string and not the return code.
Thanks you.
-lssl -lcrypto.