---
title: Encrypting and Decrypting Directories
framework: applearchive
role: sampleCode
role_heading: Sample Code
path: applearchive/encrypting-and-decrypting-directories
---

# Encrypting and Decrypting Directories

Compress and encrypt the contents of an entire directory or decompress and decrypt an archived directory  using Apple Encrypted Archive.

## Overview

Overview note: This sample code project is associated with WWDC21 session 10233: Bring Encrypted Archives and Performance Improvements to Your App with Accelerate.

## See Also

### Apple Encrypted Archive essentials

- [Encrypting and Decrypting a String](applearchive/encrypting-and-decrypting-a-string.md)
- [Encrypting and Decrypting a Single File](applearchive/encrypting-and-decrypting-a-single-file.md)
- [ArchiveEncryptionContext](applearchive/archiveencryptioncontext.md)
