Info

Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.

Advanced Encryption Stndard (AES) for text file?

2 Ansichten (letzte 30 Tage)
Aseel H
Aseel H am 7 Jan. 2013
Geschlossen: Image Analyst am 6 Jun. 2021
I need code for AES to encrypt text file, I have code download it from mathwork but i can not give input as (plaintexet.text) to get cipher file
for details:
[s_box, inv_s_box, w, poly_mat, inv_poly_mat] = aes_init; plaintext_hex = {'00' '11' '22' '33' '44' '55' '66' '77' ... '88' '99' 'aa' 'bb' 'cc' 'dd' 'ee' 'ff'};
but I want: plaintext = (text.txt); then applying code on it.
thanks
  2 Kommentare
Image Analyst
Image Analyst am 7 Jan. 2013
List the toolbox where this function lives in the "Products" section below. It does no good to give a "tag" like "toolbox" without mentioning which toolbox aes_init is in.
Jan
Jan am 7 Jan. 2013
I assume, that Aseel H searchs for a toolbox function to import a text file.

Antworten (2)

Jan
Jan am 7 Jan. 2013
Bearbeitet: Jan am 7 Jan. 2013
You have downloaded code for AES encryption from Mathworks? Please post the corresponding link.
Unfortunately, code for AES encryption is concerned by the US export control, such that the states of the axis of evil cannot get these tools. Of course Matlab is shipped with Java, and therefore only two lines of code are required to call an already existing method. Nevertheless, publishing these lines in the forum hosted on a server inside the US is not allowed. In opposite to this you can download the C-code for AES as PDF, because the written form is covered by the freedom of speech, see the original paper from NIST. There have been two versions of Java in the past also: One with 256-bit encryption could only downloaded, if the user enabled a checkbox, that he is not a citizen of one of the evil states.
However, your problem seems to have nothing to do with AES encryption, but with reading a text file:
plaintext = fileread('text.txt')

Aiswarya Babu
Aiswarya Babu am 6 Jun. 2021
Bearbeitet: Image Analyst am 6 Jun. 2021
Hello, Is it possible to do aes encryption and decryption of text file in matlab. Someone could help me to get the code for completing my project. I have recorded the sound and created a sound wave file which is converted to text file. This file is needed to be encrypted and decrypted using aes. Please help me. Thanks in advance.
  1 Kommentar
Image Analyst
Image Analyst am 6 Jun. 2021
"Is it possible to do aes encryption and decryption of text file in matlab." Yes.
"Someone could help me to get the code for completing my project." No. Encryption discussions are not allowed in this forum.

Diese Frage ist geschlossen.

Community Treasure Hunt

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

Start Hunting!

Translated by