simplify json loads, replace crypto with hashlib