Topic: https://russell.ballestrini.net/monoalphabetic-cipher-and-inverse-written-in-python/
hide preview

What's next? verify your email address for reply notifications!

unverified 7y, 225d ago [edited]

How can we get dynamic mapping of plain text instead of the static list that you have taken here?

remark link
hide preview

What's next? verify your email address for reply notifications!

russell 7y, 225d ago

I'm not sure I quite understand your question. You can dynamically build a Python dictionary. You can also shuffle the letters around. As long as the cipher is the same on both ends you can encrypt and decrypt messages on both ends.

hide preview

What's next? verify your email address for reply notifications!

russell 7y, 224d ago

I added a library to the blog post which has a function called random_monoalpha_cipher() which may be used to dynamically generate a cipher.

If this cipher was shared between two agents, computers, or people, it could be used to encrypt or decrypt messages.

hide preview

What's next? verify your email address for reply notifications!