Skip to content

Instantly share code, notes, and snippets.

@JosephGregg
Last active October 6, 2016 00:16
Show Gist options
  • Save JosephGregg/eee529e2a9a6ade8f4f13f9116405d01 to your computer and use it in GitHub Desktop.
Save JosephGregg/eee529e2a9a6ade8f4f13f9116405d01 to your computer and use it in GitHub Desktop.
print(crypto.toHex(crypto.hash("sha256",node.chipid())))
print(node.chipid())
> http.get("http://XXXXXX/test.php?value="..node.chipid())
> http.get("http://XXXXXX/test.php?value="..crypto.hash("md5",node.chipid()))
> http.get("http://XXXXXX/test.php?value="..crypto.toHex(crypto.hash("md5",node.chipid())))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment