% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utils.R
\name{validate_api_key}
\alias{validate_api_key}
\title{Validate API Key Format}
\usage{
validate_api_key(api_key, strict = TRUE)
}
\arguments{
\item{api_key}{Character string containing the API key}

\item{strict}{Logical, if TRUE performs additional validation checks}
}
\value{
List with valid (logical), provider (character), and error (character if invalid)
}
\description{
Validates API key format for OpenAI or Gemini according to NIST IA-5(1).
Auto-detects provider from key prefix and validates format requirements.
}
\section{NIST Compliance}{

Implements NIST IA-5(1): Authenticator Management - Password-Based Authentication.
Validates format, length, and character composition to prevent weak or malformed keys.
}

\keyword{internal}
