happyDomain / happydomain

Finally a simple interface for domain names (mirror of framagit.org/happyDomain/happydomain)
https://www.happydomain.org/
Other
22 stars 1 forks source link

Secret Key base 64 padding helper (for Dynamic DNS) #12

Closed systemcrash closed 9 months ago

systemcrash commented 1 year ago

Recommended to add a base64 helper, which tags === onto the end (max padding). Then let base64 determine how much padding is necessary.

Why?

Some copy/paste selection mechanisms auto-select up to = since = is often a separator, not always part of a text-string.

When I (mouse) click from a console, where double-clicking selects

asdf==
---^ up to and including here

Otherwise trying to add without correct padding results in e.g.:

Something is wrong in received data: illegal base64 data at input byte 84