Base64 is a method for encoding data for transfer over the Internet.
Questions tagged [base64]
51 questions
444
votes
19 answers
How to encode base64 via command line in macOS/OS X?
Is there a terminal command in macOS/OS X which will base64 encode a file or stdin?
Josh
- 9,947
228
votes
4 answers
Why does the base64 of a string contain "\n"?
$ echo -n "apfjxkic-omyuobwd339805ak:60a06cd2ddfad610b9490d359d605407" | base64
YXBmanhraWMtb215dW9id2QzMzk4MDVhazo2MGEwNmNkMmRkZmFkNjEwYjk0OTBkMzU5ZDYwNTQw
Nw==
The output has a return before Nw==. What is the correct way to generate base64 in…
Tiina
- 3,297
114
votes
2 answers
Why is the size of my email about a third bigger than the size of its attached files?
When attaching data to my emails, I noticed that Thunderbird calculates the total size of the resulting email as much bigger than the files I attached.
Here's a recent example: two images, one at 13MB and one at 3.6MB should in total be…
arc_lupus
- 1,266
57
votes
3 answers
How can I convert from hex to base64?
Can anyone recommend a straightforward way/tool to convert hex to base64?
I'm using Linux and OS X.
Tom Duckering
- 703
34
votes
2 answers
Why is base64 needed (aka why can't I just email a binary file)?
I was reading up on Base64 encoding, and found this on Wikipedia:
Base64 encoding schemes are commonly used when there is a need to encode binary data that needs be stored and transferred over media that are designed to deal with textual data.
...…
Cookie Monster
- 783
16
votes
3 answers
How can I extract an attachment from the email body (encoded as base64)
How can I extract attachments from an email when they arrive encoded in the body of the email like this:
------ =_NEXTPART_FORMSCAPE_MAIL_message101122101615
Content-Type: application/octet-stream; name="MyFile_hasalongish
…
DrStalker
- 391
10
votes
1 answer
An entry in my system env variables 'IGCCSVC_DB' has a base 64 string as a value, any idea what its purpose might be?
On Windows 11, what is the purpose of IGGCCSVC_DB in my environment variables?
I'm assuming this is the Intel Graphics Command Center Service (IGGCCSVC). DB means database. The IGGCCSVC_DB string value…
sc_top22
- 103
7
votes
4 answers
How do I open files sent to me in a 'document envelope'?
I just got an email whose X-Mailer is "X-Mailer: Microsoft CDO for Windows 2000". It has as an attachment a .sgn file, whose content is an XML with one field apparently being a base64-encoded PDF:
einpoklum
- 10,666
7
votes
2 answers
Odd results on base64 operations
I am having weird output on base64 operations. I have something I want to programmatically download, and found that the links contains base64 encoded data ({date}.zip. This is evidenced by the following:
> echo "MjAyMS0wMS0xMy56aXA=" | base64…
createchange
- 89
6
votes
1 answer
cURL example for accessing authenticated Kraken API
I've been trying to implement a client for Kraken private API (https://www.kraken.com/help/api) and because I've been running into some issues with that, I've been trying to access that same API with cURL.
However, I can't get for the life of me get…
aerique
- 221
- 2
- 7
5
votes
7 answers
Decoding base64 images and saving to a file
I need to save a few base64 images from a web page to actual GIF and JPEG files on my hard drive. Is there a utility out there that can assist me? I've looked around and either I'm not seeing one or haven't figured out how to use one properly.
In…
larryq
- 305
5
votes
2 answers
how to put an image in an HTML signature for Thunderbird?
How do I get thunderbird to send HTML and an image in a signature?
Just wanting to send a red dot in the signature file for as an example.
see also:
https://stackoverflow.com/q/44481019/262852
Thufir
- 1,808
4
votes
1 answer
Emails being received in Base64, not being automatically decoded
A lot of agents at my company are receiving emails that still include the Barracuda (spam firewall) header (even in "message" view, not "source" view) and are encoded in Base64.
They are being sent from overseas for the most part, so is it possible…
user108
- 41
3
votes
1 answer
How to view html source in Thunderbird when "Content-Transfer-Encoding: base64"?
I press Ctrl+U in the Icedove (Thunderbird), and see plaintext. Last two headers are:
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: base64
and the rest data is encoded.
How to conveniently view HTML source of such email in…
Vi.
- 17,755
3
votes
2 answers
Can I encrypt a username password combo before using it with cURL?
I'm making a shell script that reached out to a web service with basic auth. I don't want to have to put in my username and password every time the script runs, but I also don't want to have the combo in plain text inside the script. I know the…
Greg Guida
- 133