You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I put together an example of a (partial-)homomorphic cryptosystem (Paillier, 1999). It's a probabilistic and asymmetric cryptosystem with beneficial properties. It works with Clojure and Babashka (requires 0.3.5 and above).
Flythrough usage:
Create a key-pair
Encrypt a message (text or number) with a public-key
Decrypt a message (text or number) with a private-key
Add together two ciphertexts (numbers) without decrypting them
Multiply a plaintext (number) with ciphertext (number)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I put together an example of a (partial-)homomorphic cryptosystem (Paillier, 1999). It's a probabilistic and asymmetric cryptosystem with beneficial properties. It works with Clojure and Babashka (requires 0.3.5 and above).
Flythrough usage:
The source is available here:
https://gist.github.com/littleli/9cf457a05fd925060d1e4a874834ad5e
Beta Was this translation helpful? Give feedback.
All reactions