필터 지우기
필터 지우기

How to convert an image for AES algorithm in Hexadecimal format input?

조회 수: 2 (최근 30일)
I know how to convert the file in byte format by using
fid = fopen(FileName, 'r');
if fid == -1, error('Cannot open file'); end
data = fread(fid, Inf, '*uint8');
fclose(fid);
But I want the file in hexadecimal format. How to convert it in hexadecimal format??? If I use dec2hex then the size of the file is too much so i cannot use this. So, how to convert file in hexadecimal for AES.
Plz... help....thanx.

채택된 답변

Walter Roberson
Walter Roberson 2013년 1월 18일
datahex = sprintf('%02x', data);
  댓글 수: 1
Radwa
Radwa 2015년 1월 16일
How to decrease the bits( decrease the samplind from fopen?
I have DSPtoolbox

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

추가 답변 (0개)

카테고리

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