News for hackers. Stuff that matters.
Re:Show HN: Write (almost) perfect encryption in an hour by sz4kerto on Saturday January 24, 2015 @12:56PM (#8940324)
"if(num_cypher_bytes<100000)// or num_bytes"

If num_bytes << num_cypher_bytes (and even more if we know the key length) then the encryption leaks information. https://en.wikipedia.org/wiki/XOR_cipher Otherwise this is a stream cipher and it is really secure but it's inconvenient :)

But it is a good starting point for anybody who's interested in crypto.

There are no comments on this comment yet.