# File lib/authlogic/crypto_providers/wordpress.rb, line 8 def matches?(crypted, *tokens) stretches = 1 << ITOA64.index(crypted[3, 1]) plain, salt = *tokens hashed = Digest::MD5.digest(salt + plain) stretches.times do |i| hashed = Digest::MD5.digest(hashed + plain) end crypted[0, 12] + encode_64(hashed, 16) == crypted end