Base64 is a method for encoding data for transfer over the Internet.
Questions tagged [base64]
46 questions
409
votes
20 answers
How to encode base64 via command line?
Is there a terminal command in Mac OS X which will base64 encode a file or stdin?
Josh
- 9,487
- 11
- 49
- 70
198
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
- 2,920
- 3
- 17
- 26
113
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,216
- 4
- 11
- 14
47
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
- 603
- 1
- 5
- 7
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
- 793
- 4
- 8
- 14
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
- 3
- 4
- 12
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
- 8,783
- 20
- 84
- 153
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
- 1
- 4
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
- 315
- 3
- 6
- 15
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.
- 16,755
- 32
- 111
- 189
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
- 1
- 5
3
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
- 31
- 1
- 1
- 3
2
votes
1 answer
Mime format message
How to read mime encoded files? We have converted .msg file to .mhtml for better reading without MS Outlook. But we cannot read encoded text in bounced mails. message is as
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding:…
IT researcher
- 803
- 9
- 32
- 51
2
votes
1 answer
Batch encode multiple webfont files into a CSS file?
I want to batch encode several .otf font files into a single CSS file. To my understanding, base64 embedded .otf fonts can be read by most browsers. Since Font-Squirrel's @font-face generator doesn't support direct base64 encoding of .otf files,…
Brandon Lebedev
- 183
- 3
- 15