Skip to content

Instantly share code, notes, and snippets.

View avi-arora's full-sized avatar
🎯
Focusing

Avishek Arora avi-arora

🎯
Focusing
  • India
View GitHub Profile
@avi-arora
avi-arora / crc.cpp
Created August 29, 2022 08:27
crc.cpp
#include <iostream>
#include <bitset>
using namespace std;
string POLYNOMIAL = "10001000000100001";
string TextToBinaryString(string words) {
string binaryString = "";
for (char& _char : words) {
@avi-arora
avi-arora / hillcipher.py
Last active December 2, 2021 09:34
Hill Cipher
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: "))