add sha1 encode method