npp-plugins / mimetools

Other
43 stars 11 forks source link

Base64 encoding not working #10

Closed krishofs closed 3 years ago

krishofs commented 5 years ago

Hi

Running Win10, Notepad++ 7.6.4 x64, MIME Tools 2.5. Base64 encoding bugged itself up today, used it yesterday with no issues.

When trying for example base64 encode this text, the output is wrong. Text is UTF8.

This is a test www.google.com image

VGhpcyBpcyBhIHRlc3Qgd3d3Lmdvb2dsZS5jb20 image

But the correct output should be: VGhpcyBpcyBhIHRlc3Qgd3d3Lmdvb2dsZS5jb20=

c0c0bird commented 4 years ago

All padding characters are missing.

I updated from Notepadd++ 7.? with MIME Tools 2.5 to 7.7.1 yesterday. Since the update, the mime encoding leaves out padding. Removing and re-installing all plugins did not help.

Karthikrao121 commented 4 years ago

Is anyone fixing this issue?

MichelLaviron commented 3 years ago

Try using the option "Base64 Encode with padding" instead. It works fine for me, padding "=" are added as expected.

donho commented 3 years ago

It's a feature but not a bug. As @MichelLaviron suggested, use the option "Base64 Encode with padding" instead if you need padding.