Skip to content
Adds encrypted swap file to the system - for better protection of locally stored data and to aid environments with low RAM.
Shell Makefile
Branch: master
Clone or download

Adds encrypted swap file to the system

On every boot, creates a new encrypted swapfile with a random password.

Useful for systems with low RAM such as inside virtual machines.

Has a setting ENOUGH_RAM which defaults to 1950 MB. If there is more than enough RAM, no swap file will be created.

Has an option to shred the swapfile on shutdown.

How to install swap-file-creator using apt-get

1. Download Whonix's Signing Key.


Users can check Whonix Signing Key for better security.

2. Add Whonix's signing key.

sudo apt-key --keyring /etc/apt/trusted.gpg.d/whonix.gpg add ~/patrick.asc

3. Add Whonix's APT repository.

echo "deb buster main contrib non-free" | sudo tee /etc/apt/sources.list.d/whonix.list

4. Update your package lists.

sudo apt-get update

5. Install swap-file-creator.

sudo apt-get install swap-file-creator

How to Build deb Package

Replace apparmor-profile-torbrowser with the actual name of this package with swap-file-creator and see instructions.



swap-file-creator requires donations to stay alive!

You can’t perform that action at this time.