-
Notifications
You must be signed in to change notification settings - Fork 10
Open
Description
# encoding: utf-8
require 'phpass'
password = "pässørd"
phpass = Phpass.new(8)
password_digest = "$P$Bb/iWY7RbqXpO0zN/oZZPbKz9p/w93."
phpass.check(password, password_digest)This will blow up on the phpass.check line:
/Users/roberto/.rvm/gems/ruby-2.2.2@beehive/gems/phpass-ruby-0.1.2/lib/phpass/md5.rb:43:in `crypt': incompatible character encodings: ASCII-8BIT and UTF-8 (Encoding::CompatibilityError)
from /Users/roberto/.rvm/gems/ruby-2.2.2@beehive/gems/phpass-ruby-0.1.2/lib/phpass/md5.rb:21:in `check'
from /Users/roberto/.rvm/gems/ruby-2.2.2@beehive/gems/phpass-ruby-0.1.2/lib/phpass.rb:20:in `check'
Metadata
Metadata
Assignees
Labels
No labels