⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 rsa_decryption.m

📁 This program applies Message Digest MD5 Algorithm Developed by Maimouna Al-ammar 5th Year, Compu
💻 M
字号:
%========================================================================
% STEP3: DECRYPTION 
%========================================================================
% Empty array where deciphered data will be stored
decipheredData=[];
cipheredData=xlsread('CipheredData.xlsx');
%cipheredData=double(cipheredData);
[m2,n2]=size(cipheredData);
% First for loop scans all data blocks
% rows loop: each row represents a block of data
 for i=1:m2
    % ciphered block is stored here at every loop
    decipheredBlock=[];
% Second for loop applies ciphering on each block of data
% columns loop
    for j=1:1:n2 
     maple('cipheredData:=',cipheredData(i,j));
     decipheredByte=maple('(cipheredData) &^(d) mod (n)');
     decipheredByte=str2double(decipheredByte);
     decipheredBlock = [decipheredBlock char(decipheredByte)];
    end
 decipheredData = [decipheredData; decipheredBlock];
 end
%decipheredData=decipheredData';
%decipheredData=decipheredData(:);
%decipheredData=decipheredData';
xlswrite('DecipheredData.xlsx',decipheredData);
%disp('Deciphered Data:') 
%disp(char(decipheredData))
% End of program

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -