Kodningsteori är teorin om hur man på lämpligaste sätt kodar information för att komprimera, överföra eller skydda data.