Comment on Please pick a password starting with ad and ending with min
bjoern_tantau@swg-empire.de 2 months ago
Take a string as bytes is bad with weird non-ASCII characters. Been there, been bitten in the ass by it.
At least with e-mail clients different clients on different operating systems use different encoding by default for their passwords.
With a router I could imagine different client apps following different standards.
expr@programming.dev 2 months ago
You don’t have to take arbitrary bytes. UTF-8 encoded strings are just fine and easily handled by libraries.
bjoern_tantau@swg-empire.de 2 months ago
expr@programming.dev 2 months ago
The manufacturer obviously also makes the app and can control the encoding.
bjoern_tantau@swg-empire.de 2 months ago
Many routers can also be controlled via Telnet, which will also use different encodings depending on your OS.