IvanMathy / Boop

A scriptable scratchpad for developers. In slow yet steady progress.
https://boop.okat.best
MIT License
3.84k stars 356 forks source link

Base64 is wrong #292

Closed wajdi-b closed 3 years ago

wajdi-b commented 3 years ago

Trying to encode "test123" using Boop version 1.3.1 and CLI. Boop gives: dGVzdDEyMw== CLI gives: dGVzdDEyMwo=

chrislambe commented 3 years ago

Assuming you're doing the following:

echo "test123" | base64

The difference between the two is that echo adds a newline character to the string. The CLI and Boop output match if you remove the newline character like so:

echo -n "test123" | base64