Encrypt fixed-size files in Arduino with AES

Asked

Viewed 39 times

0

I know that on Arduin it is difficult to work with files, however, how can I encrypt a file of fixed size, in Kb or Mb on Arduin using Aes or other encryption algorithm?

anyone has any idea??

  • 2

    I don’t know if I understand the question... Do you think a file of arbitrary size is always the same size? Or, do you have a file of fixed size and just want to encrypt it? Anyway. In the first case you can create a file with "null" bytes (0x00....00) and use a cipher that is safe against known-plaintext. The second case doesn’t have much mystery, just encrypt, maybe this will help, it supports Chachapoly, which is faster than AES, mainly for Uino...

  • Well, thanks man, the idea is this, I have a file with a fixed size imagine that it is of 1MB, I intend to encrypt it and to decipher it, using only the AES in the Arduin, that is the main idea, however I know that the Arduino does not deal directly with the file system of the computer(e.g., Windows) . On the other hand, the libraries I have seen deal only with texts and not files...

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.