class ROTP::OTP::URI

def algorithm

def algorithm
  return unless %w[sha256 sha512].include?(@otp.digest)
  @otp.digest.upcase
end