Borrar filtros
Borrar filtros

How to apply AES algorithm on Sound, Image and Video File????

1 visualización (últimos 30 días)
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.

Respuesta aceptada

Jan
Jan el 9 de En. de 2013
Editada: Jan el 9 de En. de 2013
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.

Más respuestas (0)

Community Treasure Hunt

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

Start Hunting!

Translated by