npp-plugins / mimetools

Other
43 stars 11 forks source link

Base64 encoding missing trailing padding character (==) #19

Closed chrisemsen closed 7 months ago

chrisemsen commented 1 year ago

The padding characters are not output when encode strings short string.

For example encoding: "ABCDE-FGHIJKLMNO" with the plug-in yields "QUJDREUtRkdISUpLTE1OTw" but with any number of online tools yields "QUJDREUtRkdISUpLTE1OTw=="

donho commented 7 months ago

https://stackoverflow.com/questions/4080988/why-does-base64-encoding-require-padding-if-the-input-length-is-not-divisible-by