- Documentation
Volcengine Kubernetes Engine
Volcengine Kubernetes Engine
FAQs
General FAQs
FAQ about using the command line for Base64 encoding
General FAQs
FAQ about using the command line for Base64 encoding
FAQ about using the command line for Base64 encoding
Issue description
When you use Linux command-line tools on macOS to Base64-encode username and password, the system automatically adds a newline character (\n) at the end. If you directly use Base64-encoded content, the program or business may fail to run.
Solution
If you need to Base64-encode passwords and similar data by using Linux command-line tools, we recommend that you use the following command:
tip
Replace ${your_password} with your actual password. For example: echo -n password123 | base64.
Last updated: 2026.07.23 14:31:45