Change sha1 lib to sha2