Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

EDIT: Someone asked "What if someone used 111111 as their password?", I just answered with this regex:

  "111111111111".match(/^(.+)\1$/)[1]


Presumably, "11111111" et al would not be valid passwords to begin with. But even if they were, so what?


the point being "111111" already appears doubled for example

could just have the doubling check after the hash check though




Consider applying for YC's Winter 2027 batch! Applications are open till November 2.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: