php security sha1 ereg_replace encrypt decrypt lowercase tool uppercase string regular-expressions reverse url-encode random password md5 url-decode