In SQL Server:
select upper(substring(sys.fn_sqlvarbasetostr(hashbytes('MD5','A')),3,32));
result:
7FC56270E7A70FA81A5935B72EACBE29
In Oracle:
select rawtohex( DBMS_CRYPTO.Hash ( UTL_I18N.STRING_TO_RAW ('A', 'AL32UTF8'), 2) ) from dual;
result:
7FC56270E7A70FA81A5935B72EACBE29
Make sure your lines are exactly the same (case sensitive). Here I used "A" as a simple example, but it can be any line.
If you avoid data type differences by converting them to a large string, you should be able to create the same md5 hash code on different platforms. Note that SQL Server added β0xβ to the hash to indicate the hexadecimal representation that I shared with the substring.
tbone source share