How do I convert a string to MD5

Discussions about Z-Way software and Z-Wave technology in general
Post Reply
slooon9969
Posts: 1
Joined: 10 Oct 2019 22:31

How do I convert a string to MD5

Post by slooon9969 » 10 Oct 2019 22:37

Hello, I am creating an API module. It requires a request with a password in MD5. Tell me an easy way to convert a string to MD5.
I try this:
var dgst = crypto.md5("pass");
And I get "ArrayBufer".
But how do I send it in an HTTP get request? I will be glad of any help

User avatar
PoltoS
Posts: 4991
Joined: 26 Jan 2011 19:36

Re: How do I convert a string to MD5

Post by PoltoS » 14 Oct 2019 00:34

Please have a look in automation/Utils.js, function byteArrayToString

Post Reply