mhash is used for string hashing. crypto functions unrelated to charsets.