Skip to content

An API to generate K1, K2, K3, and random substitution Aristocrats, Patristocrats and Xenocrypts for the Codebusters Science Olympiad event

License

Notifications You must be signed in to change notification settings

cmdvmd/codebusters-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Codebusters API

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

Endpoints

  • aristocrat
  • patristocrat
  • xenocrypt

Example Calls:

https://codebustersapi.pythonanywhere.com/aristocrat
https://codebustersapi.pythonanywhere.com/patristocrat
https://codebustersapi.pythonanywhere.com/xenocrypt

Encoding with a Keyed Alphabet

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

Response

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 problem
  • plaintext - The original quote from the problem

Credits

Credit to Codebuilder for quotes list and keyword list

Development

To develop this project further, fork this repository and install dependencies from requirements.txt using pip

About

An API to generate K1, K2, K3, and random substitution Aristocrats, Patristocrats and Xenocrypts for the Codebusters Science Olympiad event

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages