hashlib is broken on rpi. use native crypto module instead.