Replacing deprecated sha with hashlib.sha1

fixes CAF-160