tuya / tuya-connector-nodejs

nodejs sdk
38 stars 17 forks source link

TypeError: crypto.createHash is not a function #6

Closed hacktronics closed 2 years ago

hacktronics commented 2 years ago

TypeError: crypto.createHash is not a function crypto will run only on nodejs, can you use some other api library so that it will work in the browser also. Please check http://www.w3.org/TR/WebCryptoAPI/

maxbbn commented 2 years ago

This project is not designed for browser, the secret key may leak in browsers; You thould run it in the server side.