Support short sha1 hash