Caclulating hash

I created configuration that sends temperature and humidity values to external web service using HTTP post. that works fine.

Now I need to add some security on it. The simplest way is to calculate hash of values mixed with some secret key. I am searching all over the net but cannot find a way to calculate has in lambda expression. I would like to use any standard hash algorithm, even md5 would do.

Is it possible?

Lambdas are c++, and I am sure c++ has many hashing libraries.

I know that. I actually searched how it is done in c++ outside of HASS/ESPHome environment.

But as I am new to HASS/ESPHome I need to learn how to do it within this platform, and I cannot find any viable source to learn from. So I hoped someone would direct me.