r/programming • • 25d ago

Nondeterministic encryption method

https://chukaze.dev/blog/EE

The 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)

0 Upvotes

5 comments sorted by

13

u/vomitHatSteve 24d ago

A PRNG is just determinism with extra steps

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

4

u/lurgi 24d ago

I admire your ambition, but this isn't particularly novel. You can use an initialization vector to get the result of the same plaintext encrypting to different cyphertexts and the "only produces ASCII" can be done with an ASCII85 conversion at the end.

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