Learn R Programming

servr (version 0.32)

auth_basic: Generate Basic authentication strings

Description

Combine usernames with passwords with colons, and generate base64-encoded strings to be used for user authentication.

Usage

auth_basic(user, password)

Value

A character vector of encoded credentials.

Arguments

user

A vector of usernames.

password

A vector of passwords.

Examples

Run this code
servr::auth_basic("foo", "B@R")

Run the code above in your browser using DataLab