[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: base64 utilty Question
From: |
Assaf Gordon |
Subject: |
Re: base64 utilty Question |
Date: |
Fri, 3 Jan 2020 15:53:40 -0700 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 |
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