change encrption algorithm from md5 to sha1