replace md5 + base convert implementation by sha1