DaNeil,
Thank you for your article, I also didn't like that answer and wanted to come up with something simpler (to me). For that I went with a timing attack.
I've written it up on my blog blog.mstill.dev/0OpkO3J0T8SZgLDI87...
I rewrote my solution as I realised I don't need to use SLEEP.
See my follow up blog.mstill.dev/Cr1OdO4FTMq1Y7S5WN...
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
DaNeil,
Thank you for your article, I also didn't like that answer and wanted to come up with something simpler (to me). For that I went with a timing attack.
I've written it up on my blog blog.mstill.dev/0OpkO3J0T8SZgLDI87...
I rewrote my solution as I realised I don't need to use SLEEP.
See my follow up blog.mstill.dev/Cr1OdO4FTMq1Y7S5WN...