BasicAuthGenerator.sh corre en linux/iOS
Descargar y luego habilitarles permisos de ejecución:
~ sudo chmod +x basicAuthGenerator.sh
~ ./basicAuthGenerator.sh nombre password
| #!/bin/sh | |
| username=$1 | |
| password=$2 | |
| credentials="$(echo -n "$username:$password" | base64)" | |
| header="Basic $credentials" | |
| echo "Agregar en la cabecera con el keyword: Authorization" | |
| echo "luego ingresar el valor:" | |
| echo $header |