added sha1 encryption