hash = ObjectClrNew('System.Security.Cryptography.HashAlgorithm',md5.Create())
could be written as
hash = ObjectClrNew('System.Security.Cryptography.HashAlgorithm',md5)
This was something I tried a year ago, but too embarrassed to post. I think you have to use the System.Bit class to convert text to array then the hash would work. It was more just part of a general CLR explore... so I gave up.