Python Image Encryption and Decryption

Python Image Encryption and Decryption adalah sebuah skrip Python sederhana yang memungkinkan Anda untuk melakukan enkripsi dan dekripsi file gambar dalam direktori menggunakan library cryptography.

Foto

image

image

image

Persyaratan

  • Python 3.x
  • cryptography library

Instalasi

1. Clone repository ini:

git clone https://github.com/ArseneXDs/image-encryption-decryption.git

cd image-encryption-decryption

2. Install dependencies menggunakan pip:

pip install -r requirements.txt

3. Menjalankan script

python start.py

Cara Penggunaan

1. Enkripsi File Gambar

  • Pilih aksi enkripsi (1) pada menu.
  • Masukkan direktori tempat file gambar (.jpg/.png) yang ingin Anda enkripsi.
  • Salin dan simpan kunci enkripsi yang dihasilkan dengan aman.

2. Dekripsi File Gambar

  • Pilih aksi dekripsi (2) pada menu.
  • Masukkan direktori tempat file gambar terenkripsi berada.
  • Masukkan kunci enkripsi yang Anda simpan saat melakukan enkripsi.

Struktur Direktori

  • start.py: Skrip utama untuk enkripsi dan dekripsi gambar.
  • LICENSE: Berkas lisensi untuk proyek ini.
  • README.md: Dokumentasi proyek (yang Anda sedang baca).
  • requirements.txt: Daftar dependensi yang diperlukan untuk menjalankan proyek ini.

Lisensi

MIT License

Copyright (c) 2024 Arsène

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.