This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
from sympy import Matrix | |
CHAR_TABLE = {chr(i+97): i for i in range(0,26)} | |
CHAR_TABLE_REV = dict(zip(CHAR_TABLE.values(), CHAR_TABLE.keys())) | |
def program(): | |
#take user input | |
#plain_text = sanitize(input("Enter Plain Text: ")) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <bitset> | |
using namespace std; | |
string POLYNOMIAL = "10001000000100001"; | |
string TextToBinaryString(string words) { | |
string binaryString = ""; | |
for (char& _char : words) { |