Skip to content

Script to hide your private data like passwords more easily from terminal.

License

Notifications You must be signed in to change notification settings

me-mariosteve/secure-files

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 

Repository files navigation

Secure files

PLEASE DO NOT USE THIS SCRIPT IT WAS WRITTEN A LONG TIME AGO AND IT IS NOT SECURE AT ALL

Description

Before I start writing this script, I wanted to store my passwords in a secure way on my computer. I learned about the immutable attribute and GnuPG and it was great, but I was thinking I add to enter to much commands. So began this script, in the aim to automate this task.

Features

  • Only on ext file systems and requires the script to be run as root: add/remove the 'immutable' attribute to a file, edit a file with this attribute
  • Encrypt/decrypt files via GnuPG
  • Set the owner, group and mode of a file

Dependencies

Dependency Why?
bash To run the script
e2fsprogs To [un]set the immutable attribute on files
A text editor that can be run as root (e.g. Vim) To edit files
GnuPG To encrypt/decrypt files

Usage

To get the help message, call the script without arguments.

For example, if it is in the current directory:

./secure-file.sh

To do

  • Improve help messages
  • Make it more secure (no data loss)
  • Something to unsecure a file, execute a command on it, then resecure the file
  • Improve code readability
  • Executable as non-root user
  • Support not only for ext file systems

About

Script to hide your private data like passwords more easily from terminal.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages