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

Yeah I'm not sure what's the best protocol that's actually zero-knowledge here, but since we both trusted each other to only want to find out whether or not our gifts were the same, and otherwise to not spoil the surprise, this did the job.


You could write a script that does the hash comparison for you and simply outputs “Yes” or “No” for whether the hashes are identical.


You could just write a script that lets you write an input and your spouse writes an input and then compares the two inputs without showing them - no need for hashing at all.




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

Search: