module JWT::Algos

def indexed

def indexed
  @indexed ||= begin
    fallback = [nil, Algos::Unsupported]
    ALGOS.each_with_object(Hash.new(fallback)) do |cls, hash|
      cls.const_get(:SUPPORTED).each do |alg|
        hash[alg.downcase] = [alg, cls]
      end
    end
  end
end