A powerful command-line tool for securely encrypting and managing sensitive files and directories with session support and advanced file utilities.
We are not responsible for any data loss. While Hide&Lock is designed to be secure and reliable:
- Always keep backups of important files before locking them
- Store your master keys in a safe place
- Be careful with sensitive directories
- Data loss might occur due to:
- Forgetting passwords or master keys
- System crashes during encryption/decryption
- Improper use of force options (-r)
- Accidental deletion of configuration
- π Strong AES256 encryption
- π Session-based file management
- π Master key recovery system
- β‘ Temporary and permanent unlocking options
- π‘οΈ Sensitive directory protection
- π― Simple and intuitive interface
- π Multiple session support with separate passwords
- βοΈ Session management tools
- π NEW: Timestamp manipulation - Modify file/folder creation and modification dates
- π NEW: Batch timestamp operations - Update multiple files at once
- π NEW: Timestamp copying - Copy timestamps between files
- π¨ NEW: Folder color customization - Change folder colors across desktop environments
- π NEW: Color presets and custom colors - 15 preset colors plus custom hex colors
- π NEW: Batch color operations - Apply colors to multiple folders at once
# Clone the repository
git clone https://github.com/ishaq2321/hide-and-lock.git
# Navigate to the directory
cd hide-and-lock
# Make the script executable
chmod +x lock.sh# Basic usage
./lock.sh # Start normally
./lock.sh -s Photos # Start with session 'Photos'
./lock.sh -h # Show help menu# Lock a directory
./lock.sh
> Choose option 1
> Enter path: /path/to/folder
# Unlock a directory
./lock.sh
> Choose option 2
> Select ID and unlock type
# Timestamp manipulation
./lock.sh
> Choose option 4
> Various timestamp operations available# View current timestamps
./lock.sh
> Option 4 -> Option 1
> Enter file path
# Set specific timestamps
./lock.sh
> Option 4 -> Option 2
> Enter timestamps in various formats:
- "2023-12-25 15:30:00"
- "2023-12-25"
- "2 days ago"
- "last week"
# Copy timestamps from another file
./lock.sh
> Option 4 -> Option 3
> Specify source and target files
# Batch operations
./lock.sh
> Option 4 -> Option 4
> Update multiple files with same timestamp# Set folder color from presets
./lock.sh
> Option 5 -> Option 1
> Select from 15 preset colors (Red, Blue, Green, etc.)
# Set custom hex color
./lock.sh
> Option 5 -> Option 2
> Enter custom color name and hex code (#FF5733)
# Reset folder to default color
./lock.sh
> Option 5 -> Option 3
> Remove custom coloring
# Batch color operations
./lock.sh
> Option 5 -> Option 4
> Apply same color to multiple folders# Create/access a session
./lock.sh -s Photos # Work with Photos session
./lock.sh -s Documents # Work with Documents session
# Delete a session
./lock.sh --delete-session # Interactive session deletion
# Each session has:
- Independent password
- Unique master key
- Separate locked items
- Isolated configuration# Force lock sensitive directories
./lock.sh -r -k <key> /path/to/sensitive
# Recover using master key
./lock.sh -m <master-key>
# Delete configuration
./lock.sh --delete-config
# Show version info
./lock.sh -vOptions:
-h, --help Show help message
-m KEY Recover using master key
-r Force lock sensitive directories
-k KEY Provide current key for operations
-s SESSION Specify session name (e.g., Photos, Documents)
-v, --version Show program version and author information
--delete-session Delete a specific session (interactive)
--delete-config Delete configuration (requires password)- ISO Format:
2023-12-25 15:30:00 - Date Only:
2023-12-25 - Relative:
2 days ago,last week,yesterday - Natural:
Dec 25 2023,Christmas 2023
- View Timestamps - Display current access, modify, and change times
- Set Specific Times - Manually set access and modification times
- Copy Timestamps - Copy timestamps from one file to another
- Batch Operations - Update multiple files/directories at once
- Reset to Current - Update timestamps to current time
- Privacy: Remove traces of when files were accessed/modified
- Organization: Set consistent timestamps for related files
- Forensics: Analyze or modify file timeline information
- Backup Restoration: Maintain original timestamps after restoration
- GNOME/Ubuntu - Uses gio metadata and emblems
- KDE/Plasma - Creates .directory files with custom icons
- XFCE - Uses Thunar-compatible directory files
- MATE/Cinnamon - Generic method with desktop entries
- Generic - Fallback method for unknown environments
Preset Colors (15 options):
- Red (#FF0000)
- Green (#00FF00)
- Blue (#0000FF)
- Yellow (#FFFF00)
- Orange (#FFA500)
- Purple (#800080)
- Pink (#FFC0CB)
- Brown (#A52A2A)
- Gray (#808080)
- Black (#000000)
- Cyan (#00FFFF)
- Magenta (#FF00FF)
- Lime (#32CD32)
- Navy (#000080)
- Maroon (#800000)
Custom Colors:
- Any valid hex color (#RRGGBB format)
- Custom color names
- Color preview in terminal
- Set Preset Colors - Choose from 15 predefined colors
- Set Custom Colors - Use any hex color with custom names
- Reset to Default - Remove custom coloring
- Batch Operations - Apply colors to multiple folders
- View Current Color - Check existing color configuration
- Organization - Color-code folders by project, priority, or type
- Visual Management - Quick identification of important directories
- Personal Preference - Customize your file manager appearance
- Team Collaboration - Standardize folder colors across team projects
-
Session Management:
- Create separate sessions for different types of data
- Use meaningful session names
- Keep track of master keys for each session
- Regularly backup session configurations
-
Data Safety:
- Never delete configuration directories manually
- Always use --delete-session for removing sessions
- Keep master keys in a secure, separate location
- Test unlocking before deleting original files
-
Sensitive Directories:
- Check sensitive_dirs.txt for protected locations
- Use -r flag carefully with sensitive directories
- Create sessions away from system directories
-
Timestamp Operations:
- Always verify timestamps after modification
- Be careful with batch operations on system files
- Keep backups before major timestamp changes
- Use relative dates for convenience ("2 days ago")
-
Folder Color Operations:
- Test colors in a non-important directory first
- Some file managers may require restart to show changes
- Colors are stored in .directory and .folder_color files
- Batch operations can be undone by batch reset
Contributions are welcome! Please feel free to submit pull requests.
- Fork the repository
- Create your feature branch
- Commit your changes
- Push to the branch
- Open a pull request
Hide&Lock provides simple and secure file encryption, but if you need extremely sophisticated security with advanced features like keyboard logging protection and enhanced folder locking mechanisms, check out our advanced solution:
PhantomVault - An extremely sophisticated security tool that uses keyboard logging techniques to secure and lock folders with advanced protection mechanisms.
For support, feature requests, or issues:
- π§ Email: ishaq2321@proton.me
- π GitHub Issues: Create an issue
This project is licensed under the MIT See the LICENSE file for details.
Note: This tool is for legitimate use only. Always respect privacy and data protection laws.