uu59 / phpass-ruby

porting of phpass for ruby
14 stars 9 forks source link

Fixed for international characters #3

Open rezonant opened 6 years ago

rezonant commented 6 years ago

Fixes error: Encoding::CompatibilityError: incompatible character encodings: ASCII-8BIT and UTF-8

greveritt commented 6 years ago

I'm currently having issues with international characters after we migrated from the original PHP implementation a few days ago. Thanks.

greveritt commented 6 years ago

We use the I get FrozenError's on Strings when using this code, specifically on line 90 of md5.rb:

s.force_encoding('BINARY')