當前位置:成語大全網 - 書法字典 - 如何用c語言寫希爾密碼?

如何用c語言寫希爾密碼?

//希爾算法加密解密\ x0d \ # include \ x0d \ # include \ x0d \ # include \ x0d \ # include//nDime是所有變量,可逆矩陣的維數\ x0d \ int nDime\ x0d \ int index = 0;// MAXN是明文的最大長度\ x0d \ const int MAXN = 256//矩陣乘法,其中a是列為1的矩陣\ x0d \ void乘法矩陣(int a [],int b [] [10],int * text) \ x0d \ {\ x0d \ inti,j,t;for(I = 0;I = size)\ x0d \ sum % = size;\ x0d \ temp 1[diff]* = m[行][列];\ x0d \ temp 2[sum]* = m[行][列];\ x0d \ } \ x0d \ } \ x0d \ t = 0;\ x0d \ for(row = 0;排