RosettaCodeData/Task/MD5/Mathematica/md5-1.math

8 lines
178 B
Plaintext

StringHash[string_String]:=Module[{stream=OpenWrite[],file,hash},
WriteString[stream,string];
file=Close[stream];
hash=FileHash[file,"MD5"];
DeleteFile[file];
hash
]