class Argon2::Password

def self.verify_password(pass, hash, secret = nil)

def self.verify_password(pass, hash, secret = nil)
  # Supports argon2i and argon2id formats.
  raise ArgonHashFail, "Invalid hash" unless
    /^\$argon2i.{,113}/ =~ hash
  Argon2::Engine.argon2_verify(pass, hash, secret)
end