Hacker Read top | best | new | newcomments | leaders | about | bookmarklet login

What's to stop someone from storing a base 64 encoded image in a text field?


sort by: page size:

base64 encoded fields it is.

How far do you take that line of reasoning? Base64 is text?

Why save images inline? The src wouldn’t be human readable if it’s base 64 encoded.

I removed the image completely now courtesy of another commenter. Anyhow, wouldn't base64 be cheating? ;)

It's a base64 encoded image. What's the big deal?

Am I allowed to Base64 encode the image into the HTML document?

Why did you base64 it? I was expecting an image, but if it's just text, why didnt you just post the text?

What if you Base64 encode this? Pretty trivial to add to the form logic.

I understood his post perfectly well. By using base64 to store passwords is just as bas as storing them in plain text, because you only rely on the good will of the person who has access to them.

When dealing with security, this sort of practice should be avoided at all costs e.g. a sacrifice to the functionality of your product.


Usually they encode anything except plain text with base64 since it is safe from these problems.

Base64 is a well-known plain-text encoding format. Using it as an encryption format violates privacy laws.

Images can be base64 encoded into emails

1. The decoded Base64 data is smaller (three quarters of the size?) than the encoded data.

2. Keeping only the encoded data would mean having to decode it every time the image gets redisplayed.

Ideally, one would remove the Base64 coded data from the document, and cache the binary data.


Base 64 is fine - he just needs to url-encode the parameter.

Is the base64 in there actually a measure intended to stop copyright infringement? It can't be, base64 is completely transparent. The reason things are encoded in base64 is so that they can be transmitted in a subset of ascii (and thus be embedded in plain text formats like html).

Base64 encode, no such thing as text-only.

This has 2 problems:

* You can base64 encode any file, so it'll look like text. Limitations on message size might solve that.

* Sometimes, photos and videos are important. Think of the Abu Ghraib torture pictures, the Tianamen Square Tank Man. Sometimes photos & videos are censored and should be shared with the world.


Base64 padding, probably.

Are you talking about text? No base64 is not an efficient way to store raster images, neither is vector markup.
next

Legal | privacy