using md5 http://pajhome.org.uk/crypt/md5/index.html (Paul Johnston)
var str = 'тестовая строка'; var hash = hex_md5(str);