emerose/pbkdf2-ruby — pull request #2 by samflores (2012-03-23 15:58:05+00:00)
Title: Ruby 1.9 encoding issue

If the default encoding for Ruby 1.9 is set to UTF-8 (or other multibyte encoding) `xor_impl` returns a String encoded that way, which is passed to the next iteration, breaking the next call to `xor_impl` because `self.bytes.to_a` and `other.bytes.to_a` have different sizes.

This change just make sure the correct encoding is always being used.