Questions tagged [base64]

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

Filter by
Sorted by
Tagged with
0 votes
0 answers
24 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?
user avatar
0 votes
0 answers
15 views

Encode base64 username and password in Linux different from Postman [duplicate]

I have a problem when I use basic auth: When I use basic auth in Postman, username and password will respond string 1 (this string is right and I can use this to work). When I use encode with ...
user avatar
0 votes
1 answer
247 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 ...
user avatar
-1 votes
1 answer
926 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 ...
user avatar
  • 3
7 votes
2 answers
3k 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 ...
user avatar
0 votes
1 answer
75 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 *...
user avatar
0 votes
1 answer
226 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 ...
user avatar
  • 385
0 votes
1 answer
3k 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 -...
user avatar
  • 113
1 vote
2 answers
5k 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 ...
user avatar
0 votes
0 answers
30 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/...
user avatar
  • 181
0 votes
1 answer
253 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')) ...
user avatar
0 votes
1 answer
72 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 "...
user avatar
0 votes
0 answers
36 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 ...
user avatar
0 votes
2 answers
894 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: ...
user avatar
0 votes
1 answer
653 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 ...
user avatar
0 votes
1 answer
735 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.
user avatar
0 votes
1 answer
769 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 ...
user avatar
1 vote
1 answer
2k 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 ...
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 ...
user avatar
170 votes
2 answers
154k 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==. ...
user avatar
  • 2,556
1 vote
2 answers
5k 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
user avatar
  • 1,330
0 votes
1 answer
174 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?
user avatar
  • 81
113 votes
2 answers
13k 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 ...
user avatar
  • 1,207
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 ...
user avatar
  • 221
3 votes
1 answer
12k 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 ...
user avatar
  • 31
1 vote
1 answer
2k 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 ...
user avatar
-2 votes
1 answer
5k 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 ...
user avatar
  • 1
3 votes
1 answer
3k 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 ...
user avatar
  • 15.9k
7 votes
4 answers
737 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: &...
user avatar
  • 7,392
0 votes
2 answers
347 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 ...
user avatar
0 votes
0 answers
172 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&...
user avatar
1 vote
1 answer
2k 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 ...
user avatar
  • 1,039
1 vote
2 answers
4k 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 ...
user avatar
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; ...
user avatar
1 vote
0 answers
114 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 ...
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 ...
user avatar
  • 2,938
34 votes
2 answers
26k 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 ...
user avatar
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 ...
user avatar
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 ...
user avatar
5 votes
7 answers
38k 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 ...
user avatar
  • 315
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, ...
user avatar
  • 695
16 votes
3 answers
19k 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; ...
user avatar
  • 391
39 votes
3 answers
40k 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.
user avatar
366 votes
17 answers
503k views

How to encode base64 via command line?

Is there a terminal command in Mac OS X which will base64 encode a file or stdin?
user avatar
  • 8,987