Can someone help me on how to read a text as string in matlab to be used as input data to AES algorithm

조회 수: 1 (최근 30일)
For example I have this code:
text_in=('67849805555')
len= length (text_in)
textin2=double (text_in)
datain=randsrc(1,16,0:0)
datain(1:len)=textin2
finalinput=datain
this works but it only applies to when the input is number;;; but i want certain strings of words to be entered as input.....
  댓글 수: 1
Rik
Rik 2019년 8월 28일
This code works for any char input, not just digits. What makes you think it doesn't work?
Also be aware that discussing cryptography on this site is a bit problematic, due to US laws.

댓글을 달려면 로그인하십시오.

답변 (1개)

Urmila Rajpurohith
Urmila Rajpurohith 2019년 9월 10일
I gave some strings of words as input and it’s working.
For example
text_in=(I love MATLAB)
and remaining steps as mentioned and its working properly because the functions which you are using works for both digits and characters etc.

카테고리

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