Bash: avoiding newline artifacts when Base64 encoding a string
Base64 encoding a string may seem like a straight-forward operation, but there are a couple of gotchas even when dealing with just simple ASCII strings. Avoid embedding a new line character into the encoding If you use the most straight forward method of Base64 encoding shown below, you have to remember that echo by default … Bash: avoiding newline artifacts when Base64 encoding a string