The Python Oracle

Why compare two strings via calculating xor of their characters?

Become part of the top 3% of the developers by applying to Toptal https://topt.al/25cXVn

--

Music by Eric Matyas
https://www.soundimage.org
Track title: A Thousand Exotic Places Looping v001

--

Chapters
00:00 Question
00:46 Accepted answer (Score 7)
01:25 Answer 2 (Score 1)
06:46 Answer 3 (Score -2)
07:11 Thank you

--

Full question
https://stackoverflow.com/questions/5946...

Accepted answer links:
[hmac.compare_digest]: https://docs.python.org/3/library/hmac.h...

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Tags
#python #string #algorithm #stringcomparison #xor

#avk47