Named after the Russian nesting dolls (a physical representation of the hidden data and the layers of encryption surrounding it) one example of the Matryoshka cipher would be the "Zvyozdochkin set" where six levels of encryption protect the central data core:<p>1. Outer level (Bergenia) is decrypted with key #1 to reveal the next layer.<p>2. Next inner level (ciliata) is decrypted with key #2 to reveal the next layer.<p>3. Next inner level (crassifolia) is decrypted with key #3 to reveal the next layer.<p>4. Next inner level (cordifolia) is decrypted with key #4 to reveal the next layer.<p>5. Next inner level (emeiensis) is decrypted with key #5 to reveal the next layer.<p>6. Next inner level (ligulata) is decrypted with key #6 to reveal the data.<p>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.<p>How would a model like this be set up from both a mathematical standpoint and in code?