An API to generate Aristocrats and Patristocrats for Codebusters with K1, K2, and random substitution encoding.
Note: This API is hosted for free on PythonAnywhere. If it no longer works, it may have been disabled. If this is the case, please contact me and I will renew the website
aristocrat
patristocrat
xenocrypt
Example Calls:
https://codebustersapi.pythonanywhere.com/aristocrat
https://codebustersapi.pythonanywhere.com/patristocrat
https://codebustersapi.pythonanywhere.com/xenocrypt
Use the alphabet
parameter with the value Random, K1, K2, or K3 (defaults to Random) to generate a problem that has
been encoded with the chosen alphabet
Note: Keywords for xenocrypts will always be in English
Example calls:
https://codebustersapi.pythonanywhere.com/aristocrat?alphabet=K1
https://codebustersapi.pythonanywhere.com/patristocrat?alphabet=K2
https://codebustersapi.pythonanywhere.com/xenocrypt?alphabet=K3
Example response:
{
"ciphertext": "D NDPW LEW ZKWMYH FQ LEW QILIKW CWLLWK LEMU LEW EDHLFKB FQ LEW OMHL.",
"plaintext": "I LIKE THE DREAMS OF THE FUTURE BETTER THAN THE HISTORY OF THE PAST."
}
ciphertext
- The encrypted text of the problemplaintext
- The original quote from the problem
Credit to Codebuilder for quotes list and keyword list
To develop this project further, fork this repository and install
dependencies from requirements.txt
using pip