Skip to main content

Posts

Showing posts from December, 2020

C++ Implementation of SAES(Simplified AES) 16bits

S-AES Encryption Procedure Code : #include   <bits/stdc++.h> using   namespace   std ; //Map for S-Box Substituion for Encryption. unordered_map < string ,  string >  Sbox  = {     { "0000" ,  "1001" },     { "0001" ,  "0100" },     { "0010" ,  "1010" },     { "0011" ,  "1011" },     { "0100" ,  "1101" },     { "0101" ,  "0001" },     { "0110" ,  "1000" },     { "0111" ,  "0101" },     { "1000" ,  "0110" },     { "1001" ,  "0010" },     { "1010" ,  "0000" },     { "1011" ,  "0011" },     { "1100" ,  "1100" },     { "1101" ,  "1110" },     { "1110" ,...