Skip to content

amirgamil/zk-crush

Repository files navigation

zk-Crush

zk-Crush is a way to tell your crush you like them with zero-knowledge.

Disclaimer

Note this project was mostly meant as a joke, it's not trustless (you have to trust the link came from someone you trust) and is vulnerable to rainbow attacks because hashes are unsalted since the app is entirely client-side. Be careful if you're using this seriously, use at your own risk!

overview

How it works

The idea is that we hash the name of your crush, then people can hash their name and check if their hash matches the hash of the crush you've provided. Therefore it's zero-knowledge because we don't store your name, we only know the hash, so finding a hash that matches corresponds to knowing the pre-image to the hash. Also note that this is entirely client-side, we store nothing on a server.

How to use it

Very simple, you enter your name and the name of a crush, then click generate.

It will generate a URL that you will be able to publicly share.

example

When people go to this URL, they can enter their name, to generate the hash of their name and see if it matches the hash of your crush. If it doesn't, no harm done, if it does, they now know!

notmatch

match

About

Tell your crush you like them with zero-knowledge

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published