sha-constructor removed, haslib.sha1 used instead