String extension to support md5, sha1 and base64 encoding