API Keys and Basic Authentication
API keys are simple credentials often used for server-to-server integrations or identifying applications. They should be treated as secrets, rotated, scoped, and revocable.
HTTP Basic Authentication sends a username and password encoded with Base64. Base64 is not encryption, so Basic Authentication must be used over TLS.
API keys are usually weaker than modern delegated authorization systems when users and third-party access are involved, but they remain useful for controlled machine-to-machine scenarios.
Never Treat Base64 as Encryption
Base64 encoding provides no confidentiality. Credentials transmitted with Basic Authentication require HTTPS.