# Read file in zipped folder with password

**URL:** <https://discourse.processing.org/t/read-file-in-zipped-folder-with-password/27852>\
**Category:** Coding Questions\
**Created:** [February 15, 2021, 7:53pm UTC](https://discourse.processing.org/t/read-file-in-zipped-folder-with-password/27852 "2021-02-15T19:53:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Marco0030](https://avatars.discourse-cdn.com/v4/letter/m/ebca7d/32.png) [@Marco0030](https://discourse.processing.org/u/Marco0030)\
**Post date:** [February 15, 2021, 7:53pm UTC](https://discourse.processing.org/t/read-file-in-zipped-folder-with-password/27852/1 "2021-02-15T19:53:56Z")

</div>

Hello. I’m new to processing. Is there a way to read and reproduce a file audio in a zipped folder with password?  
(i would like to avoid that someone could change the audiofiles)  
thank you

---

<div class="post-metadata">

**Author:** ![tabreturn](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/tabreturn/32/3697_2.png) [@tabreturn](https://discourse.processing.org/u/tabreturn)\
**Post date:** [February 15, 2021, 8:13pm UTC](https://discourse.processing.org/t/read-file-in-zipped-folder-with-password/27852/2 "2021-02-15T20:13:28Z")

</div>

You could run a command that extracts the files using the [exec()](https://processing.org/reference/launch_.html) function. In other words, [execute the command-line version of zip](https://askubuntu.com/questions/342900/compressing-folders-with-password-via-command-line) from Processing. But I’m not sure this will solve your problem. The user could just replace the zip archive with another full of audio files of the same name. You’re also going to have to conceal your password somehow (so nobody can read it in the source code).

---

<div class="post-metadata">

**Author:** ![Marco0030](https://avatars.discourse-cdn.com/v4/letter/m/ebca7d/32.png) [@Marco0030](https://discourse.processing.org/u/Marco0030)\
**Post date:** [March 1, 2021, 10:41am UTC](https://discourse.processing.org/t/read-file-in-zipped-folder-with-password/27852/3 "2021-03-01T10:41:10Z")

</div>

this was usefull. thank you 😀
