def of_text(self, text, encoding="<STR_LIT:utf-8>"):
m = self.hash_algo()<EOL>m.update(text.encode(encoding))<EOL>if self.return_int:<EOL><INDENT>return int(m.hexdigest(), <NUM_LIT:16>)<EOL><DEDENT>else:<EOL><INDENT>return m.hexdigest()<EOL><DEDENT>
Use default hash method to return hash value of a piece of string
        default setting use 'utf-8' encoding.