{"id":30281874,"url":"https://github.com/theunixdemon/encrypteddirectory","last_synced_at":"2025-08-16T16:55:55.547Z","repository":{"id":301762419,"uuid":"1008326168","full_name":"TheUnixDemon/EncryptedDirectory","owner":"TheUnixDemon","description":null,"archived":false,"fork":false,"pushed_at":"2025-07-27T06:21:37.000Z","size":16,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-07-27T08:29:14.427Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/TheUnixDemon.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-06-25T11:22:52.000Z","updated_at":"2025-07-27T06:21:42.000Z","dependencies_parsed_at":"2025-07-04T19:38:36.492Z","dependency_job_id":null,"html_url":"https://github.com/TheUnixDemon/EncryptedDirectory","commit_stats":null,"previous_names":["theunixdemon/privatebrowsing","theunixdemon/encrypteddirectory"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/TheUnixDemon/EncryptedDirectory","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheUnixDemon%2FEncryptedDirectory","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheUnixDemon%2FEncryptedDirectory/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheUnixDemon%2FEncryptedDirectory/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheUnixDemon%2FEncryptedDirectory/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TheUnixDemon","download_url":"https://codeload.github.com/TheUnixDemon/EncryptedDirectory/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheUnixDemon%2FEncryptedDirectory/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270742017,"owners_count":24637503,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-16T02:00:11.002Z","response_time":91,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-08-16T16:55:51.495Z","updated_at":"2025-08-16T16:55:55.444Z","avatar_url":"https://github.com/TheUnixDemon.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Encrypted Directory\n\nUsing `ecryptfs-utils` this Bash script makes a setup for an encrypted environment inside of the created ecryptfs directory. It works out-of-the-box under Arch Linux based systems. Also it supports sound feedback using `sox` and autmatic unmounting using timeout settings and more.\n\n## \u003cu\u003e Getting Started \u003c/u\u003e\n\nExecute `./src/main.sh`. It's using *Pacman* to install requirements if needed. After the script was executed, inside of the encrypted environment you can create your own `.bashrc` and if your exiting the shell using `exit` the encrypted directory will be automaticly unmounted (default) and environment variables like `$HOME` will be set to default.\n\n### Dependencies\n\nThe required packages for the complete support of every feature (some are optional like sound feedback) can be found within the `./src/setup.sh`.\n\n* `sox`\n* `ecryptfs`\n* `firefox`\n\n### Setting Up\n\nAs explained normally the script installs the dependencies automaticly and finds the location of the encrypted directory by itself.\n\n```bash\n#!/bin/bash\ngit clone git@github.com:TheUnixDemon/EncryptedDirectory.git \u0026\u0026 ./EncryptedDirectory/src/main.sh \n```\n\nFor using this script later on look into *[Start Script](#shelllevelonetwo)*. Also if you want to use the *[arguments](#args)* inside of the encrypted environment that you will enter after starting the script, make use of the explaination of *[Private Directory](#shelllevelthree)* to load this script inside of the same shell level . Furthermore to check or alter the settings of this script go to *[Settings](#settings)*.\n\n\u003ca name=\"args\"\u003e\u003c/a\u003e\n### Arguments\n\nThe script `./src/main.sh` supports some arguments like ...\n\n* `-u` - unmount encrypted directory\n* `-p` - copying from encrypted directory to `./preset`\n* `-f` - starting a Firefox instance inside of encrypted environment\n\n```bash\n#!/bin/bash\n./src/main.sh -f # starting firefox\n```\n\n\u003ca name=\"shelllevelonetwo\"\u003e\u003c/a\u003e\n### Start Script        **»** Shell Level *One* to *Two*\n\nYou start the script in a sub shell when you are in Shell level **1**. So it will load up it's variables outside of your first shell.\n\n```bash\n#!/bin/bash\n./src/main.sh\"\n```\n\n\u003ca name=\"shelllevelthree\"\u003e\u003c/a\u003e\n### Private Directory   **»** Shell Level *Three*\n\nIf you are within the private environment you are within the shell level **3**. So you should load scripts using `source`. (`$WORKINGDIR` - script location)\n\n```bash\n#!/bin/bash\nSCRIPT=$(cd \"$WORKINGDIR\" \u0026\u0026 source \"main.sh\")\n```\n\n\u003ca name=\"settings\"\u003e\u003c/a\u003e\n## \u003cu\u003e Settings \u003c/u\u003e\n\nAs explained at the beginning, you can alter the default settings at `./src/env.sh`.\n\n```bash\n#!/bin/bash \n...\n# options\nSOUND=\"false\"       # enable/disable sox notification feedback for unmounting\nTIMEOUT=\"false\"     # automaticly umount after TLIMIT if no inteference\nTLIMIT=60           # time limit\nUSE_FIREFOX=\"false\" # automaticly starting firefox after mounting the encrypted directory\n```\n\nIf `TIMEOUT=\"true\"` and `TLIMIT=60` every sixty secounds the script will check if a process is using the encrypted directory. If not the mounted directory will be unmounted afterwards. Also If you have set `SOUND=\"true\"` a sound will accure to notify you that your encrypted directory was successfully unmounted.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftheunixdemon%2Fencrypteddirectory","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftheunixdemon%2Fencrypteddirectory","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftheunixdemon%2Fencrypteddirectory/lists"}