# File lib/facets/more/crypt.rb, line 149 def self.check(password, hash, algo = :md5) magic, salt = hash.split('$')[1,2] magic = '$' + magic + '$' self.crypt(password, algo, salt, magic) == hash end