| Crates.io | lockman |
| lib.rs | lockman |
| version | 0.1.0 |
| created_at | 2025-05-12 16:14:18.629626+00 |
| updated_at | 2025-05-12 16:14:18.629626+00 |
| description | A secure implementation for managing encrypted files. |
| homepage | https://github.com/Berke-Alp/lockman |
| repository | https://github.com/Berke-Alp/lockman |
| max_upload_size | |
| id | 1670774 |
| size | 59,269 |
LockMan is a command-line file encryption and decryption tool built with Rust. It provides a simple, secure, and efficient way to lock (encrypt) and unlock (decrypt) files using AES-256-GCM encryption.
To build LockMan from source, ensure you have:
Clone the repository:
git clone https://github.com/Berke-Alp/lockman.git
cd lockman
Build the project:
cargo build --release
The compiled binary will be available at ./target/release/lockman.
(Optional) Install globally:
cargo install --path .
This makes the lockman command globally available in your system.
LockMan provides an easy-to-use CLI for securely locking and unlocking files.
Encrypt a file with a password:
lockman lock <FILE> <PASSWORD>
<FILE>: Path to the file to lock.<PASSWORD>: Password used to encrypt the file.Example:
lockman lock example.txt secret123
Options:
Decrypt a file with a password:
lockman unlock <FILE> <PASSWORD>
<FILE>: Path to the encrypted file (must end in .lockman).<PASSWORD>: Password used during encryption.Example:
lockman unlock example.txt.lockman secret123
Options:
Password-Based Key Derivation:
File Metadata:
AES-GCM Encryption:
Start with a text file example.txt:
echo "This is a secret file." > example.txt
Lock the file with a password:
lockman lock example.txt mysecurepassword
The tool outputs a new file example.txt.lockman.
Unlock the file to retrieve its original contents:
lockman unlock example.txt.lockman mysecurepassword
This restores the original example.txt.
(Optional) Clean up:
Planned improvements to LockMan:
stdin and outputting to stdout for advanced workflows (e.g., integrating with shell scripts).This project is licensed under the MIT license. See the LICENSE file for details.
Contributions are welcome! Here's how you can help:
Before submitting, ensure:
This project uses the following crates to deliver its functionality:
If you find LockMan useful, feel free to star the repository or share it with others who need file encryption solutions! Your support means the world. 😊