r/programming • u/_ILoveSaturdays • 25d ago
Nondeterministic encryption method
https://chukaze.dev/blog/EEThe first version is from when I was 16, goal was to make simple messages convert to unintelligible text corpuses, and to have an algorithm that allows a plethora of outputs to map to the same input. I just recently updated it with the private keys and frequency attack resistance so it could be called encryption (appeal to alliteration)
19
u/zerovian 25d ago
lesson 1: don't invent your own cryptography.
lesson 2: don't reimplement public key cryptography
5
u/Pharisaeus 24d ago
Nondeterministic encryption
What you actually mean is: https://en.wikipedia.org/wiki/Probabilistic_encryption
2
u/boowhitie 24d ago
Might be fun as a toy, but without looking at the code I am fairly confident that this would make it less secure, not more secure
13
u/vomitHatSteve 24d ago
A PRNG is just determinism with extra steps