2021-09-20 11:34:57 +02:00
# Shark
2021-09-20 11:35:29 +02:00
Shark is a sha256+xor based encryption.
I made it because I want to try to break it.
(Precisely: Show it does not provide semantic security, because it is not IND-CPA-secure)
This will work iff I succeed in building a PPT-discriminator for sha256 from randomness
As my first approach this discriminator will be based on an LSTM-network.
2021-09-21 16:00:43 +02:00
Update: This worked out way better than expected; given long enought sequences (128 Bytes are more than enough) we can discriminate successfully in 100% of cases.
2021-09-22 22:27:53 +02:00
Update 2: I did an upsie in the training-code and the discriminator is actually shit.
Update 3: Turns out: sha256 produces fairly high quality randomness and this project seems to have failed...