cryptshield 1.0.1__tar.gz → 1.1.1__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.1
3
+ Version: 1.1.1
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
@@ -30,7 +30,7 @@ Project-URL: Documentation, https://github.com/wilmerm/cryptshield?tab=readme-ov
30
30
  Project-URL: Repository, https://github.com/wilmerm/cryptshield
31
31
  Project-URL: Issues, https://github.com/wilmerm/cryptshield/issues
32
32
  Project-URL: Release, https://github.com/wilmerm/cryptshield/releases
33
- Keywords: encryption,deletion,secure,application,python,cryptography,cryptshield,guardian
33
+ Keywords: encryption,deletion,secure,application,python,cryptography,cryptshield,guardian,privacy,security,file,folder,data,protection,safety,safeguard,lock,unlock,erase,wipe,shred,scrub,clean,destroy,confidential,sensitive,information,safekeeping,cybersecurity
34
34
  Classifier: Development Status :: 5 - Production/Stable
35
35
  Classifier: Intended Audience :: Developers
36
36
  Classifier: Topic :: Security :: Cryptography
@@ -46,22 +46,25 @@ Requires-Python: >=3.10
46
46
  Description-Content-Type: text/markdown
47
47
  License-File: LICENSE
48
48
  Requires-Dist: cryptography
49
+ Requires-Dist: Pillow
50
+ Dynamic: license-file
49
51
 
50
- # Secure Encryption and Deletion Application
52
+ # Secure Encryption, Deletion, and Metadata Cleaning Application
51
53
 
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.
54
+ 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
55
 
54
56
  ## **Main Features**
55
57
 
56
58
  - **Secure Encryption:** Uses the Fernet library to encrypt files and directories with a user-provided key.
57
59
  - **Permanent Deletion:** Securely removes files and directories using the **shred** command.
60
+ - **Metadata Cleaning:** Removes metadata from images, documents, PDFs, and multimedia files while preserving file functionality.
58
61
  - **Recursive Processing:** Supports encrypting and deleting files within directories recursively.
59
62
  - **User Confirmation Options:** Can be configured to require user confirmation before encrypting or deleting files.
60
63
 
61
64
  ## **Requirements**
62
65
 
63
66
  - Python 3.x
64
- - Required libraries: `cryptography`, `hashlib`
67
+ - Required libraries: `cryptography`, `piexif`, `pillow`, `PyPDF2`, `python-docx`, `openpyxl`, `mutagen`
65
68
 
66
69
  ---
67
70
 
@@ -94,26 +97,85 @@ cryptshield decrypt_text "gAAAAABnsO0xV07ndDmt-fO..." secret_key
94
97
 
95
98
  # Secure file deletion
96
99
  cryptshield delete /path/to/file
100
+
101
+ # Clean metadata from files
102
+ cryptshield clean_metadata /path/to/image.jpg /path/to/document.pdf
103
+
104
+ # Clean metadata with essential information preserved
105
+ cryptshield clean_metadata /path/to/file.jpg true true true
106
+
107
+ # Clean metadata without backup (not recommended)
108
+ cryptshield clean_metadata /path/to/file.pdf false false true
109
+ ```
110
+
111
+ ---
112
+
113
+ ## **Metadata Cleaning Feature**
114
+
115
+ 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.
116
+
117
+ ### **Supported File Formats**
118
+
119
+ - **Images:** JPEG, PNG, TIFF, GIF
120
+ - Removes: EXIF data, GPS coordinates, camera information, comments, timestamps
121
+ - **Documents:** PDF, DOCX, XLSX, PPTX
122
+ - Removes: Author information, creation/modification dates, comments, document properties, edit history
123
+ - **Multimedia:** MP3, MP4, AVI, MOV, WAV, FLAC
124
+ - Removes: ID3 tags, artist, album, comments, metadata
125
+ - **Text Files:** TXT, RTF
126
+ - Removes: File system metadata where applicable
127
+
128
+ ### **Metadata Cleaning Options**
129
+
130
+ 1. **preserve_essential** (true/false): Whether to preserve essential metadata like title and creator
131
+ 2. **backup** (true/false): Whether to create backups before cleaning (recommended)
132
+ 3. **verify** (true/false): Whether to verify metadata removal after cleaning
133
+
134
+ ### **Security Features**
135
+
136
+ - **Secure Backup Management:** Creates temporary backups during processing, removes them after successful verification
137
+ - **Verification Process:** Confirms metadata has been successfully removed
138
+ - **Audit Logging:** Detailed logs of all metadata cleaning operations
139
+ - **DoD 5220.22-M Compliance:** Follows secure deletion standards
140
+ - **Forensic Recovery Prevention:** Ensures metadata cannot be recovered
141
+
142
+ ### **Examples**
143
+
144
+ ```sh
145
+ # Basic metadata cleaning
146
+ cryptshield clean_metadata /path/to/photo.jpg
147
+
148
+ # Clean multiple files
149
+ cryptshield clean_metadata /path/to/photo.jpg /path/to/document.pdf /path/to/music.mp3
150
+
151
+ # Preserve essential metadata (title, creator)
152
+ cryptshield clean_metadata /path/to/document.pdf true
153
+
154
+ # Clean without backup (faster, but less safe)
155
+ cryptshield clean_metadata /path/to/file.jpg false
156
+
157
+ # Full control: preserve_essential=false, backup=true, verify=true
158
+ cryptshield clean_metadata /path/to/file.jpg false true true
97
159
  ```
98
160
 
99
161
  ---
100
162
 
101
163
  ## Release Information
102
164
 
103
- ### Version 1.0.0
165
+ ### Version 1.1.0
104
166
 
105
167
  You can download the latest release of the **Cryptshield** package as a `.deb` file from the following link:
106
168
 
107
- [Download Cryptshield 1.0.0 (.deb)](https://github.com/wilmerm/cryptshield/releases/download/v1.0.0/cryptshield_1.0.0_all.deb)
169
+ [Download Cryptshield 1.1.0 (.deb)](https://github.com/wilmerm/cryptshield/releases/download/v1.1.0/cryptshield_1.1.0_all.deb)
108
170
 
109
171
  ### Installation
110
172
 
111
173
  To install the package on your system, run the following command:
112
174
 
113
175
  ```bash
114
- wget https://github.com/wilmerm/cryptshield/releases/download/v1.0.0/cryptshield_1.0.0_all.deb
176
+ wget https://github.com/wilmerm/cryptshield/releases/download/v1.1.0/cryptshield_1.1.0_all.deb
115
177
 
116
- sudo dpkg -i cryptshield_1.0.0_all.deb
178
+ sudo dpkg -i cryptshield_1.1.0_all.deb
117
179
  ```
118
180
 
119
181
  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.1"
7
+ version = "1.1.1"
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"
@@ -38,7 +38,8 @@ classifiers = [# https://pypi.org/classifiers/
38
38
  "Programming Language :: Python :: 3.13",
39
39
  ]
40
40
  dependencies = [
41
- "cryptography",
41
+ "cryptography",
42
+ "Pillow",
42
43
  ]
43
44
  keywords = [
44
45
  "encryption",
@@ -49,6 +50,27 @@ keywords = [
49
50
  "cryptography",
50
51
  "cryptshield",
51
52
  "guardian",
53
+ "privacy",
54
+ "security",
55
+ "file",
56
+ "folder",
57
+ "data",
58
+ "protection",
59
+ "safety",
60
+ "safeguard",
61
+ "lock",
62
+ "unlock",
63
+ "erase",
64
+ "wipe",
65
+ "shred",
66
+ "scrub",
67
+ "clean",
68
+ "destroy",
69
+ "confidential",
70
+ "sensitive",
71
+ "information",
72
+ "safekeeping",
73
+ "cybersecurity"
52
74
  ]
53
75
 
54
76
  [project.urls]
@@ -62,4 +84,5 @@ Release = "https://github.com/wilmerm/cryptshield/releases"
62
84
  where = ["src"]
63
85
  include = ["cryptshield"]
64
86
 
65
-
87
+ [project.scripts]
88
+ cryptshield = "cryptshield.cryptshield:main"
@@ -2,11 +2,12 @@ from setuptools import setup, find_packages
2
2
 
3
3
  setup(
4
4
  name="cryptshield",
5
- version="1.0.1",
5
+ version="1.1.1",
6
6
  packages=find_packages(where="src"),
7
7
  package_dir={"": "src"},
8
8
  install_requires=[
9
9
  "cryptography",
10
+ "Pillow",
10
11
  ],
11
12
  entry_points={
12
13
  "console_scripts": [
@@ -0,0 +1,4 @@
1
+ __version__ = "1.1.1"
2
+
3
+
4
+ from .cryptshield import *