311
you are viewing a single comment's thread
view the rest of the comments
[-] Cethin@lemmy.zip 15 points 2 days ago

It probably isn't an issue if you're doing things properly. Your hashing algorithm shouldn't care if the character is latin, Chinese, Arabic, or emoji. It's just a number at the end of the day.

[-] sukhmel@programming.dev 12 points 2 days ago

It shouldn't, but you will get issues of how to convert to number.

I made a password protected zip on my Android phone with a few non-ASCII characters, and the password was not accepted on PC. I am 99% sure they botched the encoding, like using UTF-32 instead of UTF-8 or something

[-] anton@lemmy.blahaj.zone 3 points 2 days ago

But you should normalize the unicode before hashing, otherwise a user having the single letter ä in their password, can't log in when the ä gets built out of a and ̈on their current device or the other way around.

this post was submitted on 30 Oct 2026
311 points (98.7% liked)

Programmer Humor

33957 readers
645 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 3 years ago
MODERATORS