I need to write an MD5 encryption function, using pure XSLT or anything else compatible Saxon's XSL 3.0 merging engine (i.e. not, for example, JavaScript).
Anyone knows a compatible code I can use for this purpose?
Thanks!
I don't know of any existing code for this. The MD5 algorithm uses bitwise operators (and, or, not, xor) on 32-bit quantities. These operators are not available as standard in XSLT/XPath, but they are implemented in the EXPath Binary module (http://expath.org/spec/binary#bitwise) which is available in Saxon (-PE or -EE), and with the help of these functions I don't see any intrinsic difficulty in implementing the algorithm.