cryptshield 1.0.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.
- cryptshield-1.0.0/LICENSE +21 -0
- cryptshield-1.0.0/PKG-INFO +211 -0
- cryptshield-1.0.0/README.md +162 -0
- cryptshield-1.0.0/pyproject.toml +64 -0
- cryptshield-1.0.0/setup.cfg +4 -0
- cryptshield-1.0.0/setup.py +15 -0
- cryptshield-1.0.0/src/cryptshield.egg-info/PKG-INFO +211 -0
- cryptshield-1.0.0/src/cryptshield.egg-info/SOURCES.txt +9 -0
- cryptshield-1.0.0/src/cryptshield.egg-info/dependency_links.txt +1 -0
- cryptshield-1.0.0/src/cryptshield.egg-info/requires.txt +1 -0
- cryptshield-1.0.0/src/cryptshield.egg-info/top_level.txt +1 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2023 Wilmer Martinez <info@wilmermartinez.dev>
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,211 @@
|
|
|
1
|
+
Metadata-Version: 2.2
|
|
2
|
+
Name: cryptshield
|
|
3
|
+
Version: 1.0.0
|
|
4
|
+
Summary: Secure Encryption and Deletion Application
|
|
5
|
+
Author-email: Wilmer Martinez <info@wilmermartinez.dev>
|
|
6
|
+
License: MIT License
|
|
7
|
+
|
|
8
|
+
Copyright (c) 2023 Wilmer Martinez <info@wilmermartinez.dev>
|
|
9
|
+
|
|
10
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
11
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
12
|
+
in the Software without restriction, including without limitation the rights
|
|
13
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
14
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
15
|
+
furnished to do so, subject to the following conditions:
|
|
16
|
+
|
|
17
|
+
The above copyright notice and this permission notice shall be included in all
|
|
18
|
+
copies or substantial portions of the Software.
|
|
19
|
+
|
|
20
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
21
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
22
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
23
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
24
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
25
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
26
|
+
SOFTWARE.
|
|
27
|
+
|
|
28
|
+
Project-URL: Homepage, https://github.com/wilmerm/cryptshield
|
|
29
|
+
Project-URL: Documentation, https://github.com/wilmerm/cryptshield?tab=readme-ov-file#secure-encryption-and-deletion-application
|
|
30
|
+
Project-URL: Repository, https://github.com/wilmerm/cryptshield
|
|
31
|
+
Project-URL: Issues, https://github.com/wilmerm/cryptshield/issues
|
|
32
|
+
Project-URL: Release, https://github.com/wilmerm/cryptshield/releases
|
|
33
|
+
Keywords: encryption,deletion,secure,application,python,cryptography,cryptshield,guardian
|
|
34
|
+
Classifier: Development Status :: 5 - Production/Stable
|
|
35
|
+
Classifier: Intended Audience :: Developers
|
|
36
|
+
Classifier: Topic :: Security :: Cryptography
|
|
37
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
38
|
+
Classifier: Natural Language :: English
|
|
39
|
+
Classifier: Natural Language :: Spanish
|
|
40
|
+
Classifier: Programming Language :: Python
|
|
41
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
42
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
43
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
44
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
45
|
+
Requires-Python: >=3.10
|
|
46
|
+
Description-Content-Type: text/markdown
|
|
47
|
+
License-File: LICENSE
|
|
48
|
+
Requires-Dist: cryptography
|
|
49
|
+
|
|
50
|
+
# Secure Encryption and Deletion Application
|
|
51
|
+
|
|
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
|
+
|
|
54
|
+
## **Main Features**
|
|
55
|
+
|
|
56
|
+
- **Secure Encryption:** Uses the Fernet library to encrypt files and directories with a user-provided key.
|
|
57
|
+
- **Permanent Deletion:** Securely removes files and directories using the **shred** command.
|
|
58
|
+
- **Recursive Processing:** Supports encrypting and deleting files within directories recursively.
|
|
59
|
+
- **User Confirmation Options:** Can be configured to require user confirmation before encrypting or deleting files.
|
|
60
|
+
|
|
61
|
+
## **Requirements**
|
|
62
|
+
|
|
63
|
+
- Python 3.x
|
|
64
|
+
- Required libraries: `cryptography`, `hashlib`
|
|
65
|
+
|
|
66
|
+
---
|
|
67
|
+
|
|
68
|
+
## **Usage**
|
|
69
|
+
|
|
70
|
+
### **Running `cryptshield`**
|
|
71
|
+
|
|
72
|
+
#### Basic syntax:
|
|
73
|
+
|
|
74
|
+
```sh
|
|
75
|
+
cryptshield [COMMAND] [OPTION1] [OPTION2]
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
#### Examples:
|
|
79
|
+
|
|
80
|
+
```sh
|
|
81
|
+
# Encrypt a file
|
|
82
|
+
cryptshield encrypt /path/to/file secret_key
|
|
83
|
+
|
|
84
|
+
# Decrypt a file
|
|
85
|
+
cryptshield decrypt /path/to/file.encrypted secret_key
|
|
86
|
+
|
|
87
|
+
# Encrypt a text
|
|
88
|
+
cryptshield encrypt_text "Sample text" secret_key
|
|
89
|
+
"gAAAAABnsO0xV07ndDmt-fO..."
|
|
90
|
+
|
|
91
|
+
# Decrypt a text
|
|
92
|
+
cryptshield decrypt_text "gAAAAABnsO0xV07ndDmt-fO..." secret_key
|
|
93
|
+
"Sample text"
|
|
94
|
+
|
|
95
|
+
# Secure file deletion
|
|
96
|
+
cryptshield delete /path/to/file
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
---
|
|
100
|
+
|
|
101
|
+
## Release Information
|
|
102
|
+
|
|
103
|
+
### Version 1.0.0
|
|
104
|
+
|
|
105
|
+
You can download the latest release of the **Cryptshield** package as a `.deb` file from the following link:
|
|
106
|
+
|
|
107
|
+
[Download Cryptshield 1.0.0 (.deb)](https://github.com/wilmerm/cryptshield/releases/download/v1.0.0/cryptshield_1.0.0_all.deb)
|
|
108
|
+
|
|
109
|
+
### Installation
|
|
110
|
+
|
|
111
|
+
To install the package on your system, run the following command:
|
|
112
|
+
|
|
113
|
+
```bash
|
|
114
|
+
wget https://github.com/wilmerm/cryptshield/releases/download/v1.0.0/cryptshield_1.0.0_all.deb
|
|
115
|
+
|
|
116
|
+
sudo dpkg -i cryptshield_1.0.0_all.deb
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
After installation, you can run the `cryptshield` command by simply typing:
|
|
120
|
+
|
|
121
|
+
```bash
|
|
122
|
+
cryptshield encrypt [FILE] [KEY]
|
|
123
|
+
```
|
|
124
|
+
|
|
125
|
+
If you encounter any issues with dependencies, you can resolve them using:
|
|
126
|
+
|
|
127
|
+
```bash
|
|
128
|
+
sudo apt-get install -f
|
|
129
|
+
```
|
|
130
|
+
|
|
131
|
+
---
|
|
132
|
+
|
|
133
|
+
## **Setup**
|
|
134
|
+
|
|
135
|
+
Ensure the required libraries are installed using the following command:
|
|
136
|
+
|
|
137
|
+
```sh
|
|
138
|
+
pip install -r requirements.txt
|
|
139
|
+
```
|
|
140
|
+
|
|
141
|
+
If you plan to use **secure deletion**, make sure you have administrator (`sudo`) privileges.
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
### Installation and `.deb` Package Creation
|
|
145
|
+
|
|
146
|
+
Follow these steps to create and install the `.deb` package for *Cryptshield*:
|
|
147
|
+
|
|
148
|
+
#### 1. Build the Package
|
|
149
|
+
Run:
|
|
150
|
+
```bash
|
|
151
|
+
dpkg-buildpackage -us -uc
|
|
152
|
+
```
|
|
153
|
+
|
|
154
|
+
#### 2. Install and Test
|
|
155
|
+
```bash
|
|
156
|
+
sudo dpkg -i ../cryptshield_<version>_all.deb
|
|
157
|
+
cryptshield
|
|
158
|
+
```
|
|
159
|
+
|
|
160
|
+
If there are dependency issues, fix them with:
|
|
161
|
+
```bash
|
|
162
|
+
sudo apt-get install -f
|
|
163
|
+
```
|
|
164
|
+
|
|
165
|
+
### Building and Publishing the Library
|
|
166
|
+
|
|
167
|
+
To compile and upload the library to PyPI, follow these steps:
|
|
168
|
+
|
|
169
|
+
1. Ensure you have the necessary dependencies:
|
|
170
|
+
|
|
171
|
+
```sh
|
|
172
|
+
pip install build twine
|
|
173
|
+
```
|
|
174
|
+
|
|
175
|
+
2. Build the package:
|
|
176
|
+
|
|
177
|
+
```sh
|
|
178
|
+
python -m build
|
|
179
|
+
```
|
|
180
|
+
|
|
181
|
+
3. (Optional) Verify the package:
|
|
182
|
+
|
|
183
|
+
```sh
|
|
184
|
+
twine check dist/*
|
|
185
|
+
```
|
|
186
|
+
|
|
187
|
+
4. Upload the package to PyPI:
|
|
188
|
+
|
|
189
|
+
```sh
|
|
190
|
+
python -m twine upload dist/*
|
|
191
|
+
```
|
|
192
|
+
|
|
193
|
+
---
|
|
194
|
+
|
|
195
|
+
## **Contributing**
|
|
196
|
+
|
|
197
|
+
If you'd like to contribute to this project or report an issue, feel free to open an issue or submit a pull request on GitHub.
|
|
198
|
+
|
|
199
|
+
---
|
|
200
|
+
|
|
201
|
+
## **License**
|
|
202
|
+
|
|
203
|
+
This application is distributed under the **MIT License**.
|
|
204
|
+
|
|
205
|
+
## Contribution 💗
|
|
206
|
+
|
|
207
|
+
If you find value in this project and would like to show your support, please consider making a donation via PayPal:
|
|
208
|
+
|
|
209
|
+
[Donate on PayPal](https://paypal.me/martinezwilmer?country.x=DO&locale.x=es_XC)
|
|
210
|
+
|
|
211
|
+
Your generosity helps us to continue improving and maintaining this project. We appreciate every contribution, however small. Thanks for being part of our community!
|
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
# Secure Encryption and Deletion Application
|
|
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.
|
|
4
|
+
|
|
5
|
+
## **Main Features**
|
|
6
|
+
|
|
7
|
+
- **Secure Encryption:** Uses the Fernet library to encrypt files and directories with a user-provided key.
|
|
8
|
+
- **Permanent Deletion:** Securely removes files and directories using the **shred** command.
|
|
9
|
+
- **Recursive Processing:** Supports encrypting and deleting files within directories recursively.
|
|
10
|
+
- **User Confirmation Options:** Can be configured to require user confirmation before encrypting or deleting files.
|
|
11
|
+
|
|
12
|
+
## **Requirements**
|
|
13
|
+
|
|
14
|
+
- Python 3.x
|
|
15
|
+
- Required libraries: `cryptography`, `hashlib`
|
|
16
|
+
|
|
17
|
+
---
|
|
18
|
+
|
|
19
|
+
## **Usage**
|
|
20
|
+
|
|
21
|
+
### **Running `cryptshield`**
|
|
22
|
+
|
|
23
|
+
#### Basic syntax:
|
|
24
|
+
|
|
25
|
+
```sh
|
|
26
|
+
cryptshield [COMMAND] [OPTION1] [OPTION2]
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
#### Examples:
|
|
30
|
+
|
|
31
|
+
```sh
|
|
32
|
+
# Encrypt a file
|
|
33
|
+
cryptshield encrypt /path/to/file secret_key
|
|
34
|
+
|
|
35
|
+
# Decrypt a file
|
|
36
|
+
cryptshield decrypt /path/to/file.encrypted secret_key
|
|
37
|
+
|
|
38
|
+
# Encrypt a text
|
|
39
|
+
cryptshield encrypt_text "Sample text" secret_key
|
|
40
|
+
"gAAAAABnsO0xV07ndDmt-fO..."
|
|
41
|
+
|
|
42
|
+
# Decrypt a text
|
|
43
|
+
cryptshield decrypt_text "gAAAAABnsO0xV07ndDmt-fO..." secret_key
|
|
44
|
+
"Sample text"
|
|
45
|
+
|
|
46
|
+
# Secure file deletion
|
|
47
|
+
cryptshield delete /path/to/file
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
---
|
|
51
|
+
|
|
52
|
+
## Release Information
|
|
53
|
+
|
|
54
|
+
### Version 1.0.0
|
|
55
|
+
|
|
56
|
+
You can download the latest release of the **Cryptshield** package as a `.deb` file from the following link:
|
|
57
|
+
|
|
58
|
+
[Download Cryptshield 1.0.0 (.deb)](https://github.com/wilmerm/cryptshield/releases/download/v1.0.0/cryptshield_1.0.0_all.deb)
|
|
59
|
+
|
|
60
|
+
### Installation
|
|
61
|
+
|
|
62
|
+
To install the package on your system, run the following command:
|
|
63
|
+
|
|
64
|
+
```bash
|
|
65
|
+
wget https://github.com/wilmerm/cryptshield/releases/download/v1.0.0/cryptshield_1.0.0_all.deb
|
|
66
|
+
|
|
67
|
+
sudo dpkg -i cryptshield_1.0.0_all.deb
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
After installation, you can run the `cryptshield` command by simply typing:
|
|
71
|
+
|
|
72
|
+
```bash
|
|
73
|
+
cryptshield encrypt [FILE] [KEY]
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
If you encounter any issues with dependencies, you can resolve them using:
|
|
77
|
+
|
|
78
|
+
```bash
|
|
79
|
+
sudo apt-get install -f
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
---
|
|
83
|
+
|
|
84
|
+
## **Setup**
|
|
85
|
+
|
|
86
|
+
Ensure the required libraries are installed using the following command:
|
|
87
|
+
|
|
88
|
+
```sh
|
|
89
|
+
pip install -r requirements.txt
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
If you plan to use **secure deletion**, make sure you have administrator (`sudo`) privileges.
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
### Installation and `.deb` Package Creation
|
|
96
|
+
|
|
97
|
+
Follow these steps to create and install the `.deb` package for *Cryptshield*:
|
|
98
|
+
|
|
99
|
+
#### 1. Build the Package
|
|
100
|
+
Run:
|
|
101
|
+
```bash
|
|
102
|
+
dpkg-buildpackage -us -uc
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
#### 2. Install and Test
|
|
106
|
+
```bash
|
|
107
|
+
sudo dpkg -i ../cryptshield_<version>_all.deb
|
|
108
|
+
cryptshield
|
|
109
|
+
```
|
|
110
|
+
|
|
111
|
+
If there are dependency issues, fix them with:
|
|
112
|
+
```bash
|
|
113
|
+
sudo apt-get install -f
|
|
114
|
+
```
|
|
115
|
+
|
|
116
|
+
### Building and Publishing the Library
|
|
117
|
+
|
|
118
|
+
To compile and upload the library to PyPI, follow these steps:
|
|
119
|
+
|
|
120
|
+
1. Ensure you have the necessary dependencies:
|
|
121
|
+
|
|
122
|
+
```sh
|
|
123
|
+
pip install build twine
|
|
124
|
+
```
|
|
125
|
+
|
|
126
|
+
2. Build the package:
|
|
127
|
+
|
|
128
|
+
```sh
|
|
129
|
+
python -m build
|
|
130
|
+
```
|
|
131
|
+
|
|
132
|
+
3. (Optional) Verify the package:
|
|
133
|
+
|
|
134
|
+
```sh
|
|
135
|
+
twine check dist/*
|
|
136
|
+
```
|
|
137
|
+
|
|
138
|
+
4. Upload the package to PyPI:
|
|
139
|
+
|
|
140
|
+
```sh
|
|
141
|
+
python -m twine upload dist/*
|
|
142
|
+
```
|
|
143
|
+
|
|
144
|
+
---
|
|
145
|
+
|
|
146
|
+
## **Contributing**
|
|
147
|
+
|
|
148
|
+
If you'd like to contribute to this project or report an issue, feel free to open an issue or submit a pull request on GitHub.
|
|
149
|
+
|
|
150
|
+
---
|
|
151
|
+
|
|
152
|
+
## **License**
|
|
153
|
+
|
|
154
|
+
This application is distributed under the **MIT License**.
|
|
155
|
+
|
|
156
|
+
## Contribution 💗
|
|
157
|
+
|
|
158
|
+
If you find value in this project and would like to show your support, please consider making a donation via PayPal:
|
|
159
|
+
|
|
160
|
+
[Donate on PayPal](https://paypal.me/martinezwilmer?country.x=DO&locale.x=es_XC)
|
|
161
|
+
|
|
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!
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["setuptools >= 61.0", "wheel"]
|
|
3
|
+
build-backend = "setuptools.build_meta"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "cryptshield"
|
|
7
|
+
version = "1.0.0"
|
|
8
|
+
authors = [
|
|
9
|
+
{ name = "Wilmer Martinez", email = "info@wilmermartinez.dev" }
|
|
10
|
+
]
|
|
11
|
+
description = "Secure Encryption and Deletion Application"
|
|
12
|
+
readme = "README.md"
|
|
13
|
+
license = {file = "LICENSE"}
|
|
14
|
+
requires-python = ">=3.10"
|
|
15
|
+
classifiers = [# https://pypi.org/classifiers/
|
|
16
|
+
|
|
17
|
+
# "Development Status :: 1 - Planning",
|
|
18
|
+
# "Development Status :: 2 - Pre-Alpha",
|
|
19
|
+
# "Development Status :: 3 - Alpha",
|
|
20
|
+
# "Development Status :: 4 - Beta",
|
|
21
|
+
"Development Status :: 5 - Production/Stable",
|
|
22
|
+
# "Development Status :: 6 - Mature",
|
|
23
|
+
# "Development Status :: 7 - Inactive",
|
|
24
|
+
|
|
25
|
+
"Intended Audience :: Developers",
|
|
26
|
+
|
|
27
|
+
"Topic :: Security :: Cryptography",
|
|
28
|
+
|
|
29
|
+
"License :: OSI Approved :: MIT License",
|
|
30
|
+
|
|
31
|
+
"Natural Language :: English",
|
|
32
|
+
"Natural Language :: Spanish",
|
|
33
|
+
|
|
34
|
+
"Programming Language :: Python",
|
|
35
|
+
"Programming Language :: Python :: 3.10",
|
|
36
|
+
"Programming Language :: Python :: 3.11",
|
|
37
|
+
"Programming Language :: Python :: 3.12",
|
|
38
|
+
"Programming Language :: Python :: 3.13",
|
|
39
|
+
]
|
|
40
|
+
dependencies = [
|
|
41
|
+
"cryptography",
|
|
42
|
+
]
|
|
43
|
+
keywords = [
|
|
44
|
+
"encryption",
|
|
45
|
+
"deletion",
|
|
46
|
+
"secure",
|
|
47
|
+
"application",
|
|
48
|
+
"python",
|
|
49
|
+
"cryptography",
|
|
50
|
+
"cryptshield",
|
|
51
|
+
"guardian",
|
|
52
|
+
]
|
|
53
|
+
|
|
54
|
+
[project.urls]
|
|
55
|
+
Homepage = "https://github.com/wilmerm/cryptshield"
|
|
56
|
+
Documentation = "https://github.com/wilmerm/cryptshield?tab=readme-ov-file#secure-encryption-and-deletion-application"
|
|
57
|
+
Repository = "https://github.com/wilmerm/cryptshield"
|
|
58
|
+
Issues = "https://github.com/wilmerm/cryptshield/issues"
|
|
59
|
+
Release = "https://github.com/wilmerm/cryptshield/releases"
|
|
60
|
+
|
|
61
|
+
[tool.setuptools.packages.find]
|
|
62
|
+
where = ["src"]
|
|
63
|
+
|
|
64
|
+
|
|
@@ -0,0 +1,211 @@
|
|
|
1
|
+
Metadata-Version: 2.2
|
|
2
|
+
Name: cryptshield
|
|
3
|
+
Version: 1.0.0
|
|
4
|
+
Summary: Secure Encryption and Deletion Application
|
|
5
|
+
Author-email: Wilmer Martinez <info@wilmermartinez.dev>
|
|
6
|
+
License: MIT License
|
|
7
|
+
|
|
8
|
+
Copyright (c) 2023 Wilmer Martinez <info@wilmermartinez.dev>
|
|
9
|
+
|
|
10
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
11
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
12
|
+
in the Software without restriction, including without limitation the rights
|
|
13
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
14
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
15
|
+
furnished to do so, subject to the following conditions:
|
|
16
|
+
|
|
17
|
+
The above copyright notice and this permission notice shall be included in all
|
|
18
|
+
copies or substantial portions of the Software.
|
|
19
|
+
|
|
20
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
21
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
22
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
23
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
24
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
25
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
26
|
+
SOFTWARE.
|
|
27
|
+
|
|
28
|
+
Project-URL: Homepage, https://github.com/wilmerm/cryptshield
|
|
29
|
+
Project-URL: Documentation, https://github.com/wilmerm/cryptshield?tab=readme-ov-file#secure-encryption-and-deletion-application
|
|
30
|
+
Project-URL: Repository, https://github.com/wilmerm/cryptshield
|
|
31
|
+
Project-URL: Issues, https://github.com/wilmerm/cryptshield/issues
|
|
32
|
+
Project-URL: Release, https://github.com/wilmerm/cryptshield/releases
|
|
33
|
+
Keywords: encryption,deletion,secure,application,python,cryptography,cryptshield,guardian
|
|
34
|
+
Classifier: Development Status :: 5 - Production/Stable
|
|
35
|
+
Classifier: Intended Audience :: Developers
|
|
36
|
+
Classifier: Topic :: Security :: Cryptography
|
|
37
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
38
|
+
Classifier: Natural Language :: English
|
|
39
|
+
Classifier: Natural Language :: Spanish
|
|
40
|
+
Classifier: Programming Language :: Python
|
|
41
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
42
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
43
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
44
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
45
|
+
Requires-Python: >=3.10
|
|
46
|
+
Description-Content-Type: text/markdown
|
|
47
|
+
License-File: LICENSE
|
|
48
|
+
Requires-Dist: cryptography
|
|
49
|
+
|
|
50
|
+
# Secure Encryption and Deletion Application
|
|
51
|
+
|
|
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
|
+
|
|
54
|
+
## **Main Features**
|
|
55
|
+
|
|
56
|
+
- **Secure Encryption:** Uses the Fernet library to encrypt files and directories with a user-provided key.
|
|
57
|
+
- **Permanent Deletion:** Securely removes files and directories using the **shred** command.
|
|
58
|
+
- **Recursive Processing:** Supports encrypting and deleting files within directories recursively.
|
|
59
|
+
- **User Confirmation Options:** Can be configured to require user confirmation before encrypting or deleting files.
|
|
60
|
+
|
|
61
|
+
## **Requirements**
|
|
62
|
+
|
|
63
|
+
- Python 3.x
|
|
64
|
+
- Required libraries: `cryptography`, `hashlib`
|
|
65
|
+
|
|
66
|
+
---
|
|
67
|
+
|
|
68
|
+
## **Usage**
|
|
69
|
+
|
|
70
|
+
### **Running `cryptshield`**
|
|
71
|
+
|
|
72
|
+
#### Basic syntax:
|
|
73
|
+
|
|
74
|
+
```sh
|
|
75
|
+
cryptshield [COMMAND] [OPTION1] [OPTION2]
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
#### Examples:
|
|
79
|
+
|
|
80
|
+
```sh
|
|
81
|
+
# Encrypt a file
|
|
82
|
+
cryptshield encrypt /path/to/file secret_key
|
|
83
|
+
|
|
84
|
+
# Decrypt a file
|
|
85
|
+
cryptshield decrypt /path/to/file.encrypted secret_key
|
|
86
|
+
|
|
87
|
+
# Encrypt a text
|
|
88
|
+
cryptshield encrypt_text "Sample text" secret_key
|
|
89
|
+
"gAAAAABnsO0xV07ndDmt-fO..."
|
|
90
|
+
|
|
91
|
+
# Decrypt a text
|
|
92
|
+
cryptshield decrypt_text "gAAAAABnsO0xV07ndDmt-fO..." secret_key
|
|
93
|
+
"Sample text"
|
|
94
|
+
|
|
95
|
+
# Secure file deletion
|
|
96
|
+
cryptshield delete /path/to/file
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
---
|
|
100
|
+
|
|
101
|
+
## Release Information
|
|
102
|
+
|
|
103
|
+
### Version 1.0.0
|
|
104
|
+
|
|
105
|
+
You can download the latest release of the **Cryptshield** package as a `.deb` file from the following link:
|
|
106
|
+
|
|
107
|
+
[Download Cryptshield 1.0.0 (.deb)](https://github.com/wilmerm/cryptshield/releases/download/v1.0.0/cryptshield_1.0.0_all.deb)
|
|
108
|
+
|
|
109
|
+
### Installation
|
|
110
|
+
|
|
111
|
+
To install the package on your system, run the following command:
|
|
112
|
+
|
|
113
|
+
```bash
|
|
114
|
+
wget https://github.com/wilmerm/cryptshield/releases/download/v1.0.0/cryptshield_1.0.0_all.deb
|
|
115
|
+
|
|
116
|
+
sudo dpkg -i cryptshield_1.0.0_all.deb
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
After installation, you can run the `cryptshield` command by simply typing:
|
|
120
|
+
|
|
121
|
+
```bash
|
|
122
|
+
cryptshield encrypt [FILE] [KEY]
|
|
123
|
+
```
|
|
124
|
+
|
|
125
|
+
If you encounter any issues with dependencies, you can resolve them using:
|
|
126
|
+
|
|
127
|
+
```bash
|
|
128
|
+
sudo apt-get install -f
|
|
129
|
+
```
|
|
130
|
+
|
|
131
|
+
---
|
|
132
|
+
|
|
133
|
+
## **Setup**
|
|
134
|
+
|
|
135
|
+
Ensure the required libraries are installed using the following command:
|
|
136
|
+
|
|
137
|
+
```sh
|
|
138
|
+
pip install -r requirements.txt
|
|
139
|
+
```
|
|
140
|
+
|
|
141
|
+
If you plan to use **secure deletion**, make sure you have administrator (`sudo`) privileges.
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
### Installation and `.deb` Package Creation
|
|
145
|
+
|
|
146
|
+
Follow these steps to create and install the `.deb` package for *Cryptshield*:
|
|
147
|
+
|
|
148
|
+
#### 1. Build the Package
|
|
149
|
+
Run:
|
|
150
|
+
```bash
|
|
151
|
+
dpkg-buildpackage -us -uc
|
|
152
|
+
```
|
|
153
|
+
|
|
154
|
+
#### 2. Install and Test
|
|
155
|
+
```bash
|
|
156
|
+
sudo dpkg -i ../cryptshield_<version>_all.deb
|
|
157
|
+
cryptshield
|
|
158
|
+
```
|
|
159
|
+
|
|
160
|
+
If there are dependency issues, fix them with:
|
|
161
|
+
```bash
|
|
162
|
+
sudo apt-get install -f
|
|
163
|
+
```
|
|
164
|
+
|
|
165
|
+
### Building and Publishing the Library
|
|
166
|
+
|
|
167
|
+
To compile and upload the library to PyPI, follow these steps:
|
|
168
|
+
|
|
169
|
+
1. Ensure you have the necessary dependencies:
|
|
170
|
+
|
|
171
|
+
```sh
|
|
172
|
+
pip install build twine
|
|
173
|
+
```
|
|
174
|
+
|
|
175
|
+
2. Build the package:
|
|
176
|
+
|
|
177
|
+
```sh
|
|
178
|
+
python -m build
|
|
179
|
+
```
|
|
180
|
+
|
|
181
|
+
3. (Optional) Verify the package:
|
|
182
|
+
|
|
183
|
+
```sh
|
|
184
|
+
twine check dist/*
|
|
185
|
+
```
|
|
186
|
+
|
|
187
|
+
4. Upload the package to PyPI:
|
|
188
|
+
|
|
189
|
+
```sh
|
|
190
|
+
python -m twine upload dist/*
|
|
191
|
+
```
|
|
192
|
+
|
|
193
|
+
---
|
|
194
|
+
|
|
195
|
+
## **Contributing**
|
|
196
|
+
|
|
197
|
+
If you'd like to contribute to this project or report an issue, feel free to open an issue or submit a pull request on GitHub.
|
|
198
|
+
|
|
199
|
+
---
|
|
200
|
+
|
|
201
|
+
## **License**
|
|
202
|
+
|
|
203
|
+
This application is distributed under the **MIT License**.
|
|
204
|
+
|
|
205
|
+
## Contribution 💗
|
|
206
|
+
|
|
207
|
+
If you find value in this project and would like to show your support, please consider making a donation via PayPal:
|
|
208
|
+
|
|
209
|
+
[Donate on PayPal](https://paypal.me/martinezwilmer?country.x=DO&locale.x=es_XC)
|
|
210
|
+
|
|
211
|
+
Your generosity helps us to continue improving and maintaining this project. We appreciate every contribution, however small. Thanks for being part of our community!
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
cryptography
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|