How to convert an image for AES algorithm in Hexadecimal format input?
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Kushal Khaitan
el 18 de En. de 2013
Comentada: Radwa
el 16 de En. de 2015
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.
0 comentarios
Respuesta aceptada
Walter Roberson
el 18 de En. de 2013
datahex = sprintf('%02x', data);
1 comentario
Radwa
el 16 de En. de 2015
How to decrease the bits( decrease the samplind from fopen?
I have DSPtoolbox
Más respuestas (0)
Ver también
Categorías
Más información sobre Encryption / Cryptography en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!