dangelov/hasher — pull request #4 by earshinov (2012-10-10 19:17:54+00:00)
Title: Fix base64-decoding of non-ASCII text

Hello. Since b64decode returns a string object, not a unicode object, it's important to decode() it. Otherwise you'll get a famous "ascii codec could not decode bla-bla" error if you try to b64decode a text containing non-ASCII letters, as it happened to me (just to mention, under Windows). People on StackOverflow say you should always decode to utf-8: http://stackoverflow.com/questions/305140#comment-3279047