フィルターのクリア

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

2 ビュー (過去 30 日間)
Kushal Khaitan
Kushal Khaitan 2013 年 1 月 18 日
コメント済み: Radwa 2015 年 1 月 16 日
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 Center および File ExchangeEncryption / Cryptography についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by