Encode to Base64 (for REST API Authentication)
Base64 Result:
Example Usage:
Username: admin, Password: password123
Result: YWRtaW46cGFzc3dvcmQxMjM=
REST API Header: Authorization: Basic YWRtaW46cGFzc3dvcmQxMjM=
cURL Example: curl -H "Authorization: Basic YWRtaW46cGFzc3dvcmQxMjM=" https://api.example.com
Decode from Base64
Decoded Result:
Example:
Base64: YWRtaW46cGFzc3dvcmQxMjM=
Decoded: admin:password123
Username: admin
Password: password123