How to apply AES algorithm on Sound, Image and Video File????
조회 수: 1 (최근 30일)
이전 댓글 표시
Hi,
I want to apply AES algorithm on sound image and video file. For that I need to convert them in text file. How should I go about it. Plz help.
댓글 수: 2
Jan
2013년 1월 9일
Before you ask a new question, it would be helpful if you answer our question about your former question at first.
채택된 답변
Jan
2013년 1월 9일
편집: Jan
2013년 1월 9일
No, there is no reason to convert the file to a text file. AES can encrypt the binary contents of the file directly, because any file can be interpreted as sequence of bytes.
fid = fopen(FileName, 'r');
if fid == -1, error('Cannot open file'); end
data = fread(fid, Inf, '*uint8');
fclose(fid);
All AES implementations I've ever seen work on Byte arrays.
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Audio and Video Data에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!