Questions tagged [base64]

Base64 is a method for encoding data for transfer over the Internet.

Filter by
Sorted by
Tagged with
426 votes
19 answers
675k views

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's user avatar
  • 9,707
219 votes
4 answers
239k views

Why does the base64 of a string contain "\n"?

$ echo -n "apfjxkic-omyuobwd339805ak:60a06cd2ddfad610b9490d359d605407" | base64 YXBmanhraWMtb215dW9id2QzMzk4MDVhazo2MGEwNmNkMmRkZmFkNjEwYjk0OTBkMzU5ZDYwNTQw Nw== The output has a return before Nw==. ...
Tiina's user avatar
  • 3,177
113 votes
2 answers
14k views

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 ...
arc_lupus's user avatar
  • 1,236
48 votes
3 answers
48k views

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's user avatar
34 votes
2 answers
28k views

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 ...
Cookie Monster's user avatar
16 votes
3 answers
21k views

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; ...
DrStalker's user avatar
  • 391
7 votes
2 answers
4k views

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 ...
createchange's user avatar
7 votes
4 answers
794 views

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's user avatar
  • 9,423
6 votes
1 answer
5k views

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 ...
aerique's user avatar
  • 221
6 votes
1 answer
2k views

An entry in my system env variables 'IGCCSVC_DB' has a base 64 string as a value, any idea what its purpose might be?

This is on windows 11. I'm assuming IGGCCSVC_DB is the Intel graphics command center service, and DB is database. The string is: AQAAANCMnd8BFdERjHoAwE/Cl+sBAAAAMFXZQlWPY0WxL81UtJ1/...
sc_top22's user avatar
5 votes
7 answers
40k views

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 ...
larryq's user avatar
  • 305
4 votes
2 answers
7k views

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's user avatar
  • 1,610
3 votes
1 answer
18k views

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 ...
user108's user avatar
  • 31
3 votes
2 answers
7k views

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 ...
Greg Guida's user avatar
3 votes
1 answer
4k views

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 ...
Vi.'s user avatar
  • 17.2k
2 votes
1 answer
4k views

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; ...
IT researcher's user avatar
2 votes
1 answer
6k views

Decrypting .p7m file

I have a .p7m file that I want to decrypt. It is encrypted with with my ca.pem file. I have my ca.crt, ca.pem and ca.key I tried several methods to decrypt it, for example: openssl smime -verify -...
cheshire's user avatar
  • 133
2 votes
1 answer
1k views

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 ...
Brandon Lebedev's user avatar
1 vote
2 answers
5k views

Hex to base64 on *nix [duplicate]

Note: I have marked this question as a duplicate of another question. But I am keeping it nonetheless as it has an example and a clearly explained answer, so hopefully it should help others. -- I ...
Kent Pawar's user avatar
1 vote
2 answers
10k views

How to bulk convert Base64 to images in an Excel file

I have an excel file with 500 rows of image URIs in Base64 (as you can see in the image). I need to convert them to images and download them to my computer. Is there a website/tool/code that can do ...
Iman Ghavamabadi's user avatar
1 vote
2 answers
3k views

How to generate a SHA-256 hash in base64 format from commandline?

How do I generate a SHA-256 hash in base64 format from commandline? I want a piped commands kind of solution.
Michael Fayad's user avatar
1 vote
1 answer
3k views

Can I convert the font and SVG to base64 via offline OS X and Linux terminals?

I know how and I can convert the images to base64 via OS X and Linux terminals. But I'm not sure if I can convert the fonts and the SVGs to base64 via offline OS X and Linux terminals. I don't know ...
Censored Name's user avatar
1 vote
1 answer
4k views

Standard Unix tool for decoding base64?

I have variously depended on metamail and munpack in the past, but both of these are suffering from bit rot. metamail has been removed from Debian, and mpack looks like it's about to be removed. I ...
tripleee's user avatar
  • 3,181
1 vote
1 answer
1k views

How to set Base64 encryption key as Environment (system) Variable on Windows 10

I have an application that connects to BigQuery using multiple creds from .json file. Being that this app will eventually reside on Pivotal Cloud Foundry and will need to be set as User Provided ...
user3216506's user avatar
1 vote
1 answer
3k views

Derive sha1 hash from openssl binary base64 value

Digital Cinema Packages contain checksums in the following format as described here: $ openssl sha1 -binary 'dcpfile.xml' |openssl base64 IxcfhXNHlw+1bbDFu0kp8KRylpU= How can I take a value such as ...
kieran's user avatar
  • 173
1 vote
1 answer
4k views

How move files through text (base64, etc)?

Why don't these work when trying to copy a file from one location to another? 1) Base64 encode the file at source, write (binary or ascii) base64 decoded at destination. 2) Open file in notepad, ...
wes's user avatar
  • 745
1 vote
1 answer
172 views

ldapmodifyuser replace with base64

I'd like to modify some entries in our LDAP. In the field gecos currently some users only have their user name which I would like to replace by their full name. In general this isn't a problem, but I ...
Richard Rosner's user avatar
1 vote
1 answer
3k views

Type an EOF without a line break

I have a little command that I use to copy/paste files around that involves pasting the base64-encoded tar archive into stdin, but the base64 utility keeps giving me and error message about my input ...
Sammitch's user avatar
  • 1,049
1 vote
0 answers
118 views

android base64 cli conversion utilities

I want to encode a file into android base64. Android's sdk has a utility method that does this. I should be able to avoid doing any Android programming to solve this. There are utilities for windows ...
David West's user avatar
0 votes
2 answers
1k views

Can I turn Base85 into a data URL? If so how?

I just recently learned of a much much more efficient version of base, called Ascii85 (or Base85) and as seen, it is much more storage efficient than say, Base64 or Uuencode: This is in Base85: ...
Mister SirCode's user avatar
0 votes
1 answer
986 views

node.js base64 encoding a string yields slightly different results (local vs heroku)

I have done some searching and I gather that the issue may be down to a new line character that is being handled different locally vs on heroku but I am not sure where or how to deal with that. I ...
Jeremy Ragsdale's user avatar
0 votes
2 answers
406 views

Simple way to encode data on flash drive

I have a USB flash drive and would like to base-64 (or similar) encode all the files/folders (recursively) under a certain parent directory on it; let's call it "toEncode". It would be preferable to ...
user3178622's user avatar
0 votes
1 answer
256 views

Can Lua support Data URLs?

In LUA, you can load HTTP request using Loadstrings, which grab the data from any link. Ive noticed these "Loadstrings" are rather annoying to lookup on the internet due to the large community of "...
Mister SirCode's user avatar
0 votes
0 answers
586 views

Base64 encoded images in Inkscape SVGs

Is there an Export / Save option in Inkscape so that the data of base64 encoded raster images in the SVGs is put on a single line instead of being split into multiple lines?
Amaterasu's user avatar
  • 101
0 votes
1 answer
570 views

How do I get HMAC SHA1 hash and Base64 encoding in AppScript?

I currently have a small piece of code to get an authorization string in R Studio. I am trying to replicate the same function in App Script, but I have not been able to get the same result. The code ...
Manuel Jiménez's user avatar
0 votes
1 answer
354 views

How can the convert command's output be passed/piped instead of saved to a file?

I made a HTML file with images as base64. I started bash-scripting to make a folders images be base64-printed into this html-file. I worked, I share the code: cat html_head.txt > fil.html for i in *...
Valter Ekholm's user avatar
0 votes
1 answer
436 views

Bulk convert image-data URIs to images

I have a text file of 391 image-data URIs, one on each line. I need to batch-convert them all to images, named according to their sequence (i.e. image001.png, image002.png or similar). What do people ...
Zarka's user avatar
  • 395
0 votes
0 answers
31 views

How can I re-send an HTML email with embedded images? [duplicate]

I have a system-generated HTML email that includes base-64 images in the content. <img style='display:block; width:100px;height:100px;' id='base64image' src='data:image/...
Zesty's user avatar
  • 181
0 votes
0 answers
58 views

I am trying to login to my Netcomm Router/Modem and the password field is changing to base64 before it sends

I was recently seeing how the property of a family member faces out onto the internet and came across an issue in the netcomm login page. when I enter a password it changes it to Base64 before it ...
qest_moriis's user avatar
0 votes
1 answer
1k views

YouTube url can't be converted to base64 again

When I tried to encode YouTube url again to base64, the value after = didn't changed except first two letters. Is that already in base64? Url Converted: http://www.youtube.com/watch?v=CvUN8qg9lsk ...
Ben Druno's user avatar
0 votes
1 answer
234 views

sFTP Encoding in Cleo VLTrader

I want to secure a zip file using Base64 OpenPGP encryption. some application have the option in command line, I wonder if such feature is available in Cleo VLTrader's GUI?
artabaz's user avatar
  • 91
0 votes
0 answers
187 views

Converting base64 encoded database

I have a dadabase whose structure is really simple. <ws> <e> <k>base64_encoded_string</k> <v>base64_encoded_string</v> </e> <e&...
JonnyRobbie's user avatar
0 votes
2 answers
371 views

Base64 in python3 vs python2

this is my base64 String "lFKiKF2o+W/vvLqddOdv2ttxWSUX/SSZEyqcdyDDb+8=". In python2 the following code works print("lFKiKF2o+W/vvLqddOdv2ttxWSUX/SSZEyqcdyDDb+8=".decode('base64', 'strict')) ...
user3780647's user avatar
-1 votes
1 answer
224 views

Odd Result in base64 decoding

I'm decoding this base64 string : qL0swAhW+7zioxG6CatHBw== I'm getting this result : $echo "qL0swAhW+7zioxG6CatHBw==" |base64 --decode : ��, V���� �G the output supposed to be something ...
jppy's user avatar
  • 1
-1 votes
1 answer
5k views

Decrypting plain text. PEM certificate

I have a text that is supposedly base64 encoded. But when I try to decipher it, an incomprehensible text comes out. But in principle, Latin letters are read. Perhaps this is a public certificate. How ...
11 11's user avatar
  • 3
-2 votes
1 answer
6k views

about spaces in base64 encoding/decoding

as it is known that while encoding with base64 encoding method the spaces are skipped but the question is while decoding how they are added back .... ?? consider the following encoding and decoding ...
Ishrak's user avatar
  • 1
-3 votes
1 answer
283 views

why RSA public keys contains non-ascii characters? [closed]

let's look at the public key in this post as an example: https://crypto.stackexchange.com/a/35105 MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCqGKukO1De7zhZj6+H0qtjTkVxwTCpvKe4eCZ0FPqri0cb2JZfXJ/...
whoisit's user avatar
  • 297