cryptshield 1.0.0__tar.gz → 1.1.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2023 Wilmer Martinez <info@wilmermartinez.dev>
3
+ Copyright (c) 2023 Wilmer Martinez <https://github.com/wilmerm>
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
@@ -1,11 +1,11 @@
1
- Metadata-Version: 2.2
1
+ Metadata-Version: 2.4
2
2
  Name: cryptshield
3
- Version: 1.0.0
3
+ Version: 1.1.0
4
4
  Summary: Secure Encryption and Deletion Application
5
- Author-email: Wilmer Martinez <info@wilmermartinez.dev>
5
+ Author: Wilmer Martinez
6
6
  License: MIT License
7
7
 
8
- Copyright (c) 2023 Wilmer Martinez <info@wilmermartinez.dev>
8
+ Copyright (c) 2023 Wilmer Martinez <https://github.com/wilmerm>
9
9
 
10
10
  Permission is hereby granted, free of charge, to any person obtaining a copy
11
11
  of this software and associated documentation files (the "Software"), to deal
@@ -46,22 +46,24 @@ Requires-Python: >=3.10
46
46
  Description-Content-Type: text/markdown
47
47
  License-File: LICENSE
48
48
  Requires-Dist: cryptography
49
+ Dynamic: license-file
49
50
 
50
- # Secure Encryption and Deletion Application
51
+ # Secure Encryption, Deletion, and Metadata Cleaning Application
51
52
 
52
- This Python application allows you to securely encrypt files and directories using the **Fernet** library and permanently delete them with the **shred** command. It is useful for protecting sensitive data and ensuring it cannot be recovered.
53
+ This Python application allows you to securely encrypt files and directories using the **Fernet** library, permanently delete them with the **shred** command, and clean metadata from various file formats. It is useful for protecting sensitive data and ensuring it cannot be recovered.
53
54
 
54
55
  ## **Main Features**
55
56
 
56
57
  - **Secure Encryption:** Uses the Fernet library to encrypt files and directories with a user-provided key.
57
58
  - **Permanent Deletion:** Securely removes files and directories using the **shred** command.
59
+ - **Metadata Cleaning:** Removes metadata from images, documents, PDFs, and multimedia files while preserving file functionality.
58
60
  - **Recursive Processing:** Supports encrypting and deleting files within directories recursively.
59
61
  - **User Confirmation Options:** Can be configured to require user confirmation before encrypting or deleting files.
60
62
 
61
63
  ## **Requirements**
62
64
 
63
65
  - Python 3.x
64
- - Required libraries: `cryptography`, `hashlib`
66
+ - Required libraries: `cryptography`, `piexif`, `pillow`, `PyPDF2`, `python-docx`, `openpyxl`, `mutagen`
65
67
 
66
68
  ---
67
69
 
@@ -94,26 +96,85 @@ cryptshield decrypt_text "gAAAAABnsO0xV07ndDmt-fO..." secret_key
94
96
 
95
97
  # Secure file deletion
96
98
  cryptshield delete /path/to/file
99
+
100
+ # Clean metadata from files
101
+ cryptshield clean_metadata /path/to/image.jpg /path/to/document.pdf
102
+
103
+ # Clean metadata with essential information preserved
104
+ cryptshield clean_metadata /path/to/file.jpg true true true
105
+
106
+ # Clean metadata without backup (not recommended)
107
+ cryptshield clean_metadata /path/to/file.pdf false false true
108
+ ```
109
+
110
+ ---
111
+
112
+ ## **Metadata Cleaning Feature**
113
+
114
+ The metadata cleaning feature provides secure removal of metadata from various file formats while maintaining the primary functionality of files. This feature complies with DoD 5220.22-M standards for secure deletion.
115
+
116
+ ### **Supported File Formats**
117
+
118
+ - **Images:** JPEG, PNG, TIFF, GIF
119
+ - Removes: EXIF data, GPS coordinates, camera information, comments, timestamps
120
+ - **Documents:** PDF, DOCX, XLSX, PPTX
121
+ - Removes: Author information, creation/modification dates, comments, document properties, edit history
122
+ - **Multimedia:** MP3, MP4, AVI, MOV, WAV, FLAC
123
+ - Removes: ID3 tags, artist, album, comments, metadata
124
+ - **Text Files:** TXT, RTF
125
+ - Removes: File system metadata where applicable
126
+
127
+ ### **Metadata Cleaning Options**
128
+
129
+ 1. **preserve_essential** (true/false): Whether to preserve essential metadata like title and creator
130
+ 2. **backup** (true/false): Whether to create backups before cleaning (recommended)
131
+ 3. **verify** (true/false): Whether to verify metadata removal after cleaning
132
+
133
+ ### **Security Features**
134
+
135
+ - **Secure Backup Management:** Creates temporary backups during processing, removes them after successful verification
136
+ - **Verification Process:** Confirms metadata has been successfully removed
137
+ - **Audit Logging:** Detailed logs of all metadata cleaning operations
138
+ - **DoD 5220.22-M Compliance:** Follows secure deletion standards
139
+ - **Forensic Recovery Prevention:** Ensures metadata cannot be recovered
140
+
141
+ ### **Examples**
142
+
143
+ ```sh
144
+ # Basic metadata cleaning
145
+ cryptshield clean_metadata /path/to/photo.jpg
146
+
147
+ # Clean multiple files
148
+ cryptshield clean_metadata /path/to/photo.jpg /path/to/document.pdf /path/to/music.mp3
149
+
150
+ # Preserve essential metadata (title, creator)
151
+ cryptshield clean_metadata /path/to/document.pdf true
152
+
153
+ # Clean without backup (faster, but less safe)
154
+ cryptshield clean_metadata /path/to/file.jpg false
155
+
156
+ # Full control: preserve_essential=false, backup=true, verify=true
157
+ cryptshield clean_metadata /path/to/file.jpg false true true
97
158
  ```
98
159
 
99
160
  ---
100
161
 
101
162
  ## Release Information
102
163
 
103
- ### Version 1.0.0
164
+ ### Version 1.1.0
104
165
 
105
166
  You can download the latest release of the **Cryptshield** package as a `.deb` file from the following link:
106
167
 
107
- [Download Cryptshield 1.0.0 (.deb)](https://github.com/wilmerm/cryptshield/releases/download/v1.0.0/cryptshield_1.0.0_all.deb)
168
+ [Download Cryptshield 1.1.0 (.deb)](https://github.com/wilmerm/cryptshield/releases/download/v1.1.0/cryptshield_1.1.0_all.deb)
108
169
 
109
170
  ### Installation
110
171
 
111
172
  To install the package on your system, run the following command:
112
173
 
113
174
  ```bash
114
- wget https://github.com/wilmerm/cryptshield/releases/download/v1.0.0/cryptshield_1.0.0_all.deb
175
+ wget https://github.com/wilmerm/cryptshield/releases/download/v1.1.0/cryptshield_1.1.0_all.deb
115
176
 
116
- sudo dpkg -i cryptshield_1.0.0_all.deb
177
+ sudo dpkg -i cryptshield_1.1.0_all.deb
117
178
  ```
118
179
 
119
180
  After installation, you can run the `cryptshield` command by simply typing:
@@ -1,18 +1,19 @@
1
- # Secure Encryption and Deletion Application
1
+ # Secure Encryption, Deletion, and Metadata Cleaning Application
2
2
 
3
- This Python application allows you to securely encrypt files and directories using the **Fernet** library and permanently delete them with the **shred** command. It is useful for protecting sensitive data and ensuring it cannot be recovered.
3
+ This Python application allows you to securely encrypt files and directories using the **Fernet** library, permanently delete them with the **shred** command, and clean metadata from various file formats. It is useful for protecting sensitive data and ensuring it cannot be recovered.
4
4
 
5
5
  ## **Main Features**
6
6
 
7
7
  - **Secure Encryption:** Uses the Fernet library to encrypt files and directories with a user-provided key.
8
8
  - **Permanent Deletion:** Securely removes files and directories using the **shred** command.
9
+ - **Metadata Cleaning:** Removes metadata from images, documents, PDFs, and multimedia files while preserving file functionality.
9
10
  - **Recursive Processing:** Supports encrypting and deleting files within directories recursively.
10
11
  - **User Confirmation Options:** Can be configured to require user confirmation before encrypting or deleting files.
11
12
 
12
13
  ## **Requirements**
13
14
 
14
15
  - Python 3.x
15
- - Required libraries: `cryptography`, `hashlib`
16
+ - Required libraries: `cryptography`, `piexif`, `pillow`, `PyPDF2`, `python-docx`, `openpyxl`, `mutagen`
16
17
 
17
18
  ---
18
19
 
@@ -45,26 +46,85 @@ cryptshield decrypt_text "gAAAAABnsO0xV07ndDmt-fO..." secret_key
45
46
 
46
47
  # Secure file deletion
47
48
  cryptshield delete /path/to/file
49
+
50
+ # Clean metadata from files
51
+ cryptshield clean_metadata /path/to/image.jpg /path/to/document.pdf
52
+
53
+ # Clean metadata with essential information preserved
54
+ cryptshield clean_metadata /path/to/file.jpg true true true
55
+
56
+ # Clean metadata without backup (not recommended)
57
+ cryptshield clean_metadata /path/to/file.pdf false false true
58
+ ```
59
+
60
+ ---
61
+
62
+ ## **Metadata Cleaning Feature**
63
+
64
+ The metadata cleaning feature provides secure removal of metadata from various file formats while maintaining the primary functionality of files. This feature complies with DoD 5220.22-M standards for secure deletion.
65
+
66
+ ### **Supported File Formats**
67
+
68
+ - **Images:** JPEG, PNG, TIFF, GIF
69
+ - Removes: EXIF data, GPS coordinates, camera information, comments, timestamps
70
+ - **Documents:** PDF, DOCX, XLSX, PPTX
71
+ - Removes: Author information, creation/modification dates, comments, document properties, edit history
72
+ - **Multimedia:** MP3, MP4, AVI, MOV, WAV, FLAC
73
+ - Removes: ID3 tags, artist, album, comments, metadata
74
+ - **Text Files:** TXT, RTF
75
+ - Removes: File system metadata where applicable
76
+
77
+ ### **Metadata Cleaning Options**
78
+
79
+ 1. **preserve_essential** (true/false): Whether to preserve essential metadata like title and creator
80
+ 2. **backup** (true/false): Whether to create backups before cleaning (recommended)
81
+ 3. **verify** (true/false): Whether to verify metadata removal after cleaning
82
+
83
+ ### **Security Features**
84
+
85
+ - **Secure Backup Management:** Creates temporary backups during processing, removes them after successful verification
86
+ - **Verification Process:** Confirms metadata has been successfully removed
87
+ - **Audit Logging:** Detailed logs of all metadata cleaning operations
88
+ - **DoD 5220.22-M Compliance:** Follows secure deletion standards
89
+ - **Forensic Recovery Prevention:** Ensures metadata cannot be recovered
90
+
91
+ ### **Examples**
92
+
93
+ ```sh
94
+ # Basic metadata cleaning
95
+ cryptshield clean_metadata /path/to/photo.jpg
96
+
97
+ # Clean multiple files
98
+ cryptshield clean_metadata /path/to/photo.jpg /path/to/document.pdf /path/to/music.mp3
99
+
100
+ # Preserve essential metadata (title, creator)
101
+ cryptshield clean_metadata /path/to/document.pdf true
102
+
103
+ # Clean without backup (faster, but less safe)
104
+ cryptshield clean_metadata /path/to/file.jpg false
105
+
106
+ # Full control: preserve_essential=false, backup=true, verify=true
107
+ cryptshield clean_metadata /path/to/file.jpg false true true
48
108
  ```
49
109
 
50
110
  ---
51
111
 
52
112
  ## Release Information
53
113
 
54
- ### Version 1.0.0
114
+ ### Version 1.1.0
55
115
 
56
116
  You can download the latest release of the **Cryptshield** package as a `.deb` file from the following link:
57
117
 
58
- [Download Cryptshield 1.0.0 (.deb)](https://github.com/wilmerm/cryptshield/releases/download/v1.0.0/cryptshield_1.0.0_all.deb)
118
+ [Download Cryptshield 1.1.0 (.deb)](https://github.com/wilmerm/cryptshield/releases/download/v1.1.0/cryptshield_1.1.0_all.deb)
59
119
 
60
120
  ### Installation
61
121
 
62
122
  To install the package on your system, run the following command:
63
123
 
64
124
  ```bash
65
- wget https://github.com/wilmerm/cryptshield/releases/download/v1.0.0/cryptshield_1.0.0_all.deb
125
+ wget https://github.com/wilmerm/cryptshield/releases/download/v1.1.0/cryptshield_1.1.0_all.deb
66
126
 
67
- sudo dpkg -i cryptshield_1.0.0_all.deb
127
+ sudo dpkg -i cryptshield_1.1.0_all.deb
68
128
  ```
69
129
 
70
130
  After installation, you can run the `cryptshield` command by simply typing:
@@ -159,4 +219,4 @@ If you find value in this project and would like to show your support, please co
159
219
 
160
220
  [Donate on PayPal](https://paypal.me/martinezwilmer?country.x=DO&locale.x=es_XC)
161
221
 
162
- Your generosity helps us to continue improving and maintaining this project. We appreciate every contribution, however small. Thanks for being part of our community!
222
+ Your generosity helps us to continue improving and maintaining this project. We appreciate every contribution, however small. Thanks for being part of our community!
@@ -4,9 +4,9 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "cryptshield"
7
- version = "1.0.0"
7
+ version = "1.1.0"
8
8
  authors = [
9
- { name = "Wilmer Martinez", email = "info@wilmermartinez.dev" }
9
+ { name = "Wilmer Martinez" }
10
10
  ]
11
11
  description = "Secure Encryption and Deletion Application"
12
12
  readme = "README.md"
@@ -60,5 +60,6 @@ Release = "https://github.com/wilmerm/cryptshield/releases"
60
60
 
61
61
  [tool.setuptools.packages.find]
62
62
  where = ["src"]
63
+ include = ["cryptshield"]
63
64
 
64
65
 
@@ -0,0 +1,16 @@
1
+ from setuptools import setup, find_packages
2
+
3
+ setup(
4
+ name="cryptshield",
5
+ version="1.1.0",
6
+ packages=find_packages(where="src"),
7
+ package_dir={"": "src"},
8
+ install_requires=[
9
+ "cryptography",
10
+ ],
11
+ entry_points={
12
+ "console_scripts": [
13
+ "cryptshield=cryptshield.cryptshield:main",
14
+ ]
15
+ },
16
+ )
@@ -0,0 +1,4 @@
1
+ __version__ = "1.1.0"
2
+
3
+
4
+ from .cryptshield import *