I'm hashing things with uhashlib in micropython on the pi pico. Here's an example:
import sys
import os
import uhashlib
import time
time_now = "blergh"
hash_test = uhashlib.sha256(time_now).digest()
print(time_now)
print(hash_test)
This outputs:
blergh
b'Y|\x84W\xa1\x1d\x86cb~\x0bL\x1e\\\x92\xcd-\x93\x05\xddz\x0e\xe1\x9f\x9a\xc1H6\x93\xd8\x0c8'
...which, clearly, isn't super useful. I've tried a bunch of things, but I can't figure out how to convert from the bytes (b'...'
) in micropython. Anyone have ideas/methods?