Format Functions - Searisal/Cryptography-Implementation GitHub Wiki

In order to make the coding of the cryptographic algorithms easier and more functional, I created certain formatting functions to convert between the different representations of plaintext and ciphertext. Namely, certain algorithms require binary formatting, integer formatting, and of course basic characters. Therefore, the following functions have been created:

  • String to binary, binary to string
  • binary to integer, integer to binary

Likewise, functions have been created to format and format ciphertext and plaintext, according to their traditional representations in classical cryptography.