DevToys-app / DevToys

A Swiss Army knife for developers.
https://devtoys.app/
MIT License
26.93k stars 1.45k forks source link

Base64 encoding of a binary file #309

Open DanAvni opened 2 years ago

DanAvni commented 2 years ago

What's the Problem?

Please support base64 encoding of a binary file

shishi commented 2 years ago

l will be happy if hash generator support binary files also.

doggy8088 commented 2 years ago

@shishi I made an issue here: https://github.com/veler/DevToys/issues/557

veler commented 2 years ago

Hello, There's a Checksum Generator tool that allows to do this: image

MatthiasSchmalz commented 2 years ago

@veler please reopen this because the feature is not yet available. The checksum calculator can do MD5 and SHA checksums based on binary files, but it can't do a base64 encoding.

veler commented 2 years ago

@veler please reopen this because the feature is not yet available. The checksum calculator can do MD5 and SHA checksums based on binary files, but it can't do a base64 encoding.

You're right. Sorry. Somehow I read hash instead of base64, my bad.

veler commented 12 months ago

Hi @MatthiasSchmalz , just to make that I understand correctly, are we talking about converting an file into Base64 or generating a checksum of a file in Base64?

MatthiasSchmalz commented 12 months ago

Hi @veler , we are talking about encoding. I want the full file content (e.g. of a jpg) in base64 format.
Base64 is an encoding and not a checksum algorithm, so a base64 checksum does not make sense unless I mention the hash algorithm.

veler commented 12 months ago

Hi @veler , we are talking about encoding. I want the full file content (e.g. of a jpg) in base64 format. Base64 is an encoding and not a checksum algorithm, so a base64 checksum does not make sense unless I mention the hash algorithm.

Gotcha. That's what I thought but just wanted to confirm since we were talking about checksum at some point. :) Thanks !

mau628 commented 12 months ago

Isn't this a small change that would require Base64 Image Encoder to accept any file type?

guidorobben commented 2 weeks ago

I would like to convert a pdf to base64 and back. I need this to convert a pdf file to base to add the string to a xml file so send to a customer or to get a xml where I need to extract the pdf.

I now used this page https://base64.guru/converter/decode/pdf