HTTP Basic Auth
Build Basic auth header; shows token length.
Base64-encodes user:password into an Authorization Basic header and token. Shows token length. Empty username fails. Local only — do not paste real passwords into shared screens.
Authorization: Basic YWxpY2U6c2VjcmV0
Base64 token: YWxpY2U6c2VjcmV0
Length: 16
User: alice