2025-03-14 21:59:59 -06:00
|
|
|
# fscrypt
|
|
|
|
|
|
|
|
|
|
> Go tool for managing Linux filesystem encryption.
|
2025-12-16 10:20:31 -07:00
|
|
|
> More information: <https://github.com/google/fscrypt#example-usage>.
|
2025-03-14 21:59:59 -06:00
|
|
|
|
2025-12-16 10:20:31 -07:00
|
|
|
- Prepare the root filesystem for use with `fscrypt`:
|
2025-03-14 21:59:59 -06:00
|
|
|
|
2025-12-16 10:20:31 -07:00
|
|
|
`sudo fscrypt setup`
|
|
|
|
|
|
|
|
|
|
- Prepare a specific mountpoint for use with `fscrypt`:
|
|
|
|
|
|
|
|
|
|
`fscrypt setup {{path/to/directory}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Enable filesystem encryption for a directory:
|
|
|
|
|
|
|
|
|
|
`fscrypt encrypt {{path/to/directory}}`
|
|
|
|
|
|
|
|
|
|
- Unlock an encrypted directory:
|
|
|
|
|
|
|
|
|
|
`fscrypt unlock {{path/to/encrypted_directory}}`
|
|
|
|
|
|
|
|
|
|
- Lock an encrypted directory:
|
|
|
|
|
|
|
|
|
|
`fscrypt lock {{path/to/encrypted_directory}}`
|