Ask HN: Is the “Matryoshka Cipher” possible to write and implement?
1. Outer level (Bergenia) is decrypted with key #1 to reveal the next layer.
2. Next inner level (ciliata) is decrypted with key #2 to reveal the next layer.
3. Next inner level (crassifolia) is decrypted with key #3 to reveal the next layer.
4. Next inner level (cordifolia) is decrypted with key #4 to reveal the next layer.
5. Next inner level (emeiensis) is decrypted with key #5 to reveal the next layer.
6. Next inner level (ligulata) is decrypted with key #6 to reveal the data.
The idea would be that each key would come from a different key chain, be of a different size and would not be allowed to have the same credentials as any other key.
How would a model like this be set up from both a mathematical standpoint and in code?