Replies: 1 comment 3 replies
-
One possibility would be to decrypt the data read from the SD card in int32_t bytesAddedToBuffer = audiofile.read(InBuff.getWritePtr(), availableBytes); |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I use the ESP32-audioI2S library on an esp32 under arduino and the output sound quality is really good.
I want to use this library to play AES128 encrypted mp3 file.
But I don't know how to use the library to read files decrypted byte by byte over time.
I don't want to extract the decoded file on the SD card, because it is accessible and the decryption time is too long (1MB->10seconds for extraction). Also, in the long term there are the risk to altered the SD card.
I would like to read the encrypted file on the SD card. In the decrypting loop, I would like to inject the decoded bytes in RAM into the read audio buffer in order to have the sound output. But I don't know how to proceed.
Is it possible to have sample code or ideas to implement it?
Thank you in advance for your feedback.
Regards
Sully
Beta Was this translation helpful? Give feedback.
All reactions