I am working with a sensor vendor. They developed a proximity sensor that sends distance…
- User
I am working with a sensor vendor. They developed a proximity sensor that sends distance data regularly to our server. they use ESP32 with arduino. So I asked them to use crypto.h for hmac authentication for every data they send to our server in order to verify it's only authenticated device that sends data to our server. But the vendors are saying it's difficult to load a library in their board. and asking alternative using native code to authenticate. Is their request valid ?it doesn't make sense to me. Also I think hmac is the lightest authentication method I can provide. RSA or any jwt will involve more communication and data or memory
- Assistant
Their request might be valid, in that using the ESP32's built-in cryptographic functions for hmac authentication can be complicated and potentially error-prone. Alternatively, they could consider using a lightweight authentication method such as JSON Web Tokens (JWTs), which are widely used for web and mobile applications and do not require any additional libraries or communication with the server. However, as you mentioned, JWTs involve more communication and data, which may not be suitable for all use cases.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.