필터 지우기
필터 지우기

pls finding error" Undefined function or variable "t"." while executing

조회 수: 1 (최근 30일)
Soumya pradhan
Soumya pradhan 2013년 3월 4일
char t= 'hello123';
t=uint8(t);
len=length(t)
pow=[];
cipher_text=[];
for i=1:len
pow=[pow;t(i).^(enckey)]; %each element of the pt matrix(plain text) is raised to the power of encryption key(enc_key) and stored in pow matrix(power matrix)
cipher_text=[cipher_text;mod(pow(i),n)];% cipher text is calculate

답변 (1개)

Ajay Pherwani
Ajay Pherwani 2013년 3월 4일
just remove 'char' keyword in the 1st line , and make it as t='hello 123' ; t=uint8(t); .. and so on

카테고리

Help CenterFile Exchange에서 Encryption / Cryptography에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by