Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
Aldo_MX
on Nov 19, 2014
|
parent
|
context
|
favorite
| on:
McGill will double your password if you don’t do i...
EDIT: Someone asked "What if someone used 111111 as their password?", I just answered with this regex:
"111111111111".match(/^(.+)\1$/)[1]
skywhopper
on Nov 19, 2014
[–]
Presumably, "11111111" et al would not be valid passwords to begin with. But even if they were, so what?
RubyPinch
on Nov 19, 2014
|
parent
[–]
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: