secret-python-message/README.md
2023-05-11 21:15:11 +03:00

568 B

Secret message generator

This uses the fact that all random number generation is pseudo-random, to create a script that generates some python code which takes a seemingly random sequence of symbols to create a message when ran.

Example output:

import random
random.seed(69420)
print(''.join(chr(random.randrange(256) ^ c)
    for c in bytes.fromhex('EAEE924CC3218C27D1EB90648D37606EDA21C1782B25C6F789C0A7BFBE')
    if random.randrange(2)))

This would output: "Hello, World!"

TODO: Create a Web interface for generating these snippets of code easily