필터 지우기
필터 지우기

Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

how to encryption, if length plaintext more than 16 character in AES 128 bit?

조회 수: 1 (최근 30일)
Anis Zaitunah
Anis Zaitunah 2021년 6월 27일
마감: Walter Roberson 2021년 6월 27일
plaintext = get(handles.txtdp, 'String');
guidata(hObject,handles);
% plaintext = input('Type in an input message (16 characters or less):\n','s');
plaintext = zerofill(plaintext);
key = 'Good[41647]';
%key ='Good[4 16 47]';
% key = input('Type in a secret key/password (16 characters or less):\n','s');
key = zerofill(key);
tic;
% Key Schedule
round_keys = key_schedule(double(key));
% Message Encryption
ciphertext = aes_encryption(plaintext,round_keys);
guidata(hObject,handles);
set(handles.cipher,'String',char(ciphertext));
% Message Decryption
plaintext_recov = aes_decryption(ciphertext, round_keys);
toc;

답변 (0개)

이 질문은 마감되었습니다.

태그

제품


릴리스

R2017b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by