You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In a RESTful call I need to hash the data with a secret according to the sha256 algoritm.
On the server side the php function call hash_hmac('sha256', $data, $secret, false) is being used.
So the idea was to add an extra function to Home Assistant - Spook to make this sha256 hashing algoritm with a secret possible.
The output should be hex digits (so binary=false).
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
In a RESTful call I need to hash the data with a secret according to the sha256 algoritm.
On the server side the php function call hash_hmac('sha256', $data, $secret, false) is being used.
Syntax server side php function:
So the idea was to add an extra function to Home Assistant - Spook to make this sha256 hashing algoritm with a secret possible.
The output should be hex digits (so binary=false).
Beta Was this translation helpful? Give feedback.
All reactions