News for hackers. Stuff that matters.
Re:Don't Fuck with Paste by indigo945 on Friday March 08, 2024 @05:37AM (#39639806)
Ironically, apple.com itself is listed in this repository! Apparently they don't allow non-ASCII characters in passwords.
Re:Don't Fuck with Paste by Sammi on Friday March 08, 2024 @06:53AM (#39640234)
You don't even have to make a single line change to your backend to fix this. You can fix this entirely on the frontend by just applying a digest hash on the password before sending to the backend for proper password hashing. This way you can even support "unlimited" length password.
Re:Don't Fuck with Paste by usrnm on Friday March 08, 2024 @07:22AM (#39640404)
Yeah, just CRC32 the password on the frontend, should be fine
Re:Don't Fuck with Paste by howerj on Saturday March 09, 2024 @06:10AM (#39650952)
No, use a cryptographic hash function. If you use a CRC32 you will massively reduce the password space and make it easy to find collisions.
Re:Don't Fuck with Paste by necovek on Saturday March 09, 2024 @07:52AM (#39651315)
That's a very much backwards incompatible change: password that used to work no longer does.

Sure, just put your 500M users through a forced-password reset.

Theoretically, it might also lead to weaker passwords depending on the hash size (that's how you support unlimited lengths by transforming a larger space into finite one) or any issues with the hashing algorithm uncovered in the future.

One thing to keep in mind is that the hash actually becomes the password, so I can imagine plenty of buggy implementations where a developer does not do what you advise ("proper password hashing"): "hey, it's already hashed, I can just store it as-is".

Re:Don't Fuck with Paste by amarant on Friday March 08, 2024 @06:27AM (#39640068)
Jesus holy Apple pie!

ASCII only in 2023 seems positivity antique. And this from a supposed tech frontrunner! Wth...

Re:Don't Fuck with Paste by chtitux on Friday March 08, 2024 @06:37AM (#39640130)
Limiting characters can also be a feature, so users can't use emojis in their password (this is so fun), to realize later they can't login, because they don't know how to input emojis from their desktop computer.

Hopefully passwords will be gone soon (at least that's my hope).

Re:Don't Fuck with Paste by Sammi on Friday March 08, 2024 @06:53AM (#39640236)
There's only so much user hand holding you can do.
Re:Don't Fuck with Paste by docmars on Friday March 08, 2024 @09:37AM (#39641412)
With how ubiquitous Apple is, introducing a small limitation to prevent user error can make a huge difference in reducing support requests.
Re:Don't Fuck with Paste by willcipriano on Friday March 08, 2024 @03:14PM (#39645804)
I'd give them the emoji keyboard on the login page. Make a web version they can use. The wider the possible keyspace the better.
Re:Don't Fuck with Paste by amarant on Saturday March 09, 2024 @02:52AM (#39650198)
We all know how great a company Apple is(sigh), but even they make mistakes. Stop defending stupidity just because it's Apple being stupid this time.
Re:Don't Fuck with Paste by docmars on Sunday March 10, 2024 @01:55PM (#39661066)
Don't get me wrong, it's a stupid limitation indeed -- but sometimes decisions like these are meant to stop users from doing stupider things :)

I'm no fan of oversimplification, but Apple's audience is everyone, not just power users. In that case, I'd prefer having advanced options surfaced to me as "advanced" so I can do what I want, but leave the simple experiences for the simple folk.

Re:Don't Fuck with Paste by amarant on Saturday March 09, 2024 @02:48AM (#39650183)
You might have half a point about emojis, but that's not what Apple is doing here.

Is there a reason I as a Swede should be limited from using my full native alphabet in my passwords for example?

As an example, you know how people sometimes suggest using a short sentence as a password? Here's a phrase in a local dialect, which means "and in the river there's an island" Å i åa e ä ö

Notice how only 2 of those letters are available in ASCII.

ASCII only is not a feature, and I honestly doubt anyone would try to argue that it is if this was about any company other than Apple. Try to look past the "who" and focus on the "what".

Re:Don't Fuck with Paste by dredmorbius on Friday March 08, 2024 @10:43AM (#39642101)
In what platforms is it not possible to input 7-bit ASCII characters 020 -- 073 (octal)?

In what platforms is it not possible to input various Unicode or emoji characters, whether at all or reliably?

Re:Don't Fuck with Paste by necovek on Saturday March 09, 2024 @07:55AM (#39651329)
Try setting up your Linux desktop/laptop with a Cyrillic language keyboard only, and then try typing in your ASCII login password.
Re:Don't Fuck with Paste by dredmorbius on Saturday March 09, 2024 @12:18PM (#39653119)
Aren't those keyboards usually readily switchable with a standard US keyboard layout (e.g., in Windows, MacOS, or Linux)?

Do you have any direct experience with this?

My point is that 7-bit ASCII underlies virtually all other keyboard / character encodings. Among the few cases where it doesn't (e.g., IBM mainframe EBCDIC, independent of ASCII), the principle encoding remains the Latin alphabet, and can readily be converted using standard system utilities.

Re:Don't Fuck with Paste by necovek on Wednesday March 13, 2024 @01:45AM (#39688437)
They aren't readily switchable unless explicitly configured to be, and yes, I am speaking from direct experience.

I get your point, I am just saying that it is not universally true, even if my example is a stretched one (Cyrillic keyboard users always configure Latin-based layouts too, but it's not a default, and it's easy to forget esp if you install from a fully live env configured with both).

If it's still not clear, you can end up on a login screen with an ASCII password you can't type in, especially so without the GUI.

Re:Don't Fuck with Paste by BobbyTables2 on Monday March 11, 2024 @12:05AM (#39664827)
And how does one define a SHA512 hash of a Unicode string?

UTF-8? UTF-16? Others?

But that’s not the worst thing…

What about normalization? Skip or implement? Should “equivalent” code points cause differing hashes?

Should one be able to use the same password from systems with differing locales/languages ?

ASCII is insufficient, but Unicode is a royal mess!

Re:Don't Fuck with Paste by nicky0 on Friday March 08, 2024 @06:40AM (#39640147)
I guess the plucky upstart password manager team has one problem to solve, the entrenched web services team has its own ways.
Re:Don't Fuck with Paste by vbezhenar on Friday March 08, 2024 @08:52AM (#39641032)
This is a good thing. I won't accidentally make weird password without realizing it.
Re:Don't Fuck with Paste by bmicraft on Friday March 08, 2024 @09:50AM (#39641539)
It's not for people with other locales and keyboards