# ARCHIVE\_CREATE with password

**URL:** https://discourse.cmake.org/t/archive-create-with-password/6665
**Category:** Usage
**Created:** [October 14, 2022, 8:55am UTC](https://discourse.cmake.org/t/archive-create-with-password/6665 "2022-10-14T08:55:20Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Suthambhara\_N](https://discourse.cmake.org/user_avatar/discourse.cmake.org/suthambhara_n/32/2832_2.png) [@Suthambhara\_N](https://discourse.cmake.org/u/Suthambhara_N)
#### Post date: [October 14, 2022, 8:55am UTC](https://discourse.cmake.org/t/archive-create-with-password/6665/1 "2022-10-14T08:55:20Z")

</div>

Hi

Is it possible to zip either using cmake -E tar or file(ARCHIVE\_CREATE) but with encryption. I couldn’t find such a support after searching. Any suggestions would be helpful

Thanks

---

<div class="post-metadata">

### Author: ![jtxa](https://discourse.cmake.org/user_avatar/discourse.cmake.org/jtxa/32/1535_2.png) [@jtxa](https://discourse.cmake.org/u/jtxa)
#### Post date: [October 15, 2022, 8:49pm UTC](https://discourse.cmake.org/t/archive-create-with-password/6665/2 "2022-10-15T20:49:07Z")

</div>

If the documentation does not say so, it’s not possible at the moment.  
In that case you can file a features request on the [issue tracker](https://gitlab.kitware.com/cmake/cmake/-/issues).  
CMake uses libarchive, which seems to support encryption at least for the ZIP format.  
If you need a solution today, you need to call a command line tool like 7z yourself.

---

<div class="post-metadata">

### Author: ![Suthambhara\_N](https://discourse.cmake.org/user_avatar/discourse.cmake.org/suthambhara_n/32/2832_2.png) [@Suthambhara\_N](https://discourse.cmake.org/u/Suthambhara_N)
#### Post date: [October 16, 2022, 2:25am UTC](https://discourse.cmake.org/t/archive-create-with-password/6665/3 "2022-10-16T02:25:40Z")

</div>

Thanks for the clarification. I was hoping that there would be some hidden experimental feature. I will raise a feature request as you suggested

Kind regards,  
Suthambhara
