An open API service indexing awesome lists of open source software.

https://github.com/sctech-tr/lockedimg

secure image locker in C that encrypts your images with a password and requires a password to decrypt them
https://github.com/sctech-tr/lockedimg

Last synced: 6 months ago
JSON representation

secure image locker in C that encrypts your images with a password and requires a password to decrypt them

Awesome Lists containing this project

README

          

# Locked Image Tool (`lockedimg`)

`lockedimg` is a simple command-line utility for encrypting and decrypting images with password protection. This tool supports various image formats and saves encrypted files with a `.lockedimg` extension, which can be decrypted with the correct password.

## Features
- **Encrypt** and **decrypt** image files using AES-256 encryption.
- Supports common image file formats: `.jpg`, `.jpeg`, `.png`, `.bmp`, `.gif`, `.ico`, `.bruh`, `.jfif`, `.svg`, and `.lockedimg`.
- **Optional deletion** of encrypted files after decryption.

## Requirements
- **OpenSSL** library is required for encryption and decryption functionality.
- A **C compiler** such as GCC.

## Compilation (for devs)
Compile the project using `make`:
```bash
make
```
This will produce an executable named `lockedimg`.
## Installation
Download the latest zip archive from the releases tab, extract it and run `./lockedimg`
## Usage
```bash
lockedimg [--no-deletion]
```
## Parameters

- ``: Choose between encrypt or decrypt.
- ``: Path to the image file.
- ``: Password for encryption or decryption.
- `--no-deletion`: Optional. Prevents deletion of the encrypted file after decryption.

## Examples
### Encrypt an image
```bash
lockedimg encrypt image.jpg mypassword123
```
### Decrypt an image without deletion
```bash
lockedimg decrypt image.jpg.lockedimg mypassword123 --no-deletion
```
## Help
Run the following for help information:
```bash
lockedimg --help
```
## Cleanup (for devs)
To remove the executable and object files:
```bash
make clean
```
## License
Apache-2.0 License