rp2350 doesn't have the same RTC peripheral as the 2040 (let alone other family micros) this has the side effect of obeying a different timesource if one has been configured.
.. many platforms can use mbedtls to implement hashlib. Compile-tested with pico-w. Tested on feather rp2040 dvi.