Hello, On 2020-01-03 1:00 p.m., Bahubali Y wrote:
I have question about base64. If I have "LF" as line terminator will that me converted to "CRLF" in base64 encoding ?.
Generally no. GNU base64 preserves the input exactly. Example: $ printf "hello\n" | base64 | base64 -d | od -tx1c -An 68 65 6c 6c 6f 0a h e l l o \n
I observed above case in my usage
Perhaps another part of your processing converts the new line characters? esp. if you are using Windows. If you can provide a succinct reproducible example, that would help in diagnosing the issue. regards, - assaf