{"version":"1.0","type":"rich","title":"Gist 211e4e229b6947bfb6c358c250294083","description":"This example demonstrates a custom encryption and decryption scheme that shuffles a secret string using a permutation key. It shows that the same key can encrypt and restore the original message, while also verifying identity operations, reversal, and manual key swaps. The Python code defines `encrypt` and `decrypt` functions that filter the key to valid indices, then use list comprehensions to reorder characters. It relies on the built-in `random` module with a seeded shuffle to generate test keys, and asserts correctness across multiple scenarios.","provider_name":"VizHub AI Studio","provider_url":"https://next.vizhub.com","html":"<iframe src=\"https://next.vizhub.com/viz/gist-211e4e229b6947bfb6c358c250294083?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"1\"></iframe>","width":960,"height":500,"cache_age":3600}