Skip to content

Commit c09026a

Browse files
Merge branch 'master' into updated_billing
2 parents 9eb618f + 7a67509 commit c09026a

21 files changed

+693
-24
lines changed

Crack_password.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
from random import *
22
user_pass = input("Enter your password: ")
3-
password = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j','k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't','u','v','w', 'x', 'y', 'z',]
3+
password = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j','k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't','u','v','w', 'x', 'y', 'z',"A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"]
44
guess = ""
55
while (guess != user_pass):
66
guess = ""
77
for letter in range(len(user_pass)):
8-
guess_letter = password[randint(0, 25)]
8+
guess_letter = password[randint(0, 51)]
99
guess = str(guess_letter) + str(guess)
1010
print(guess)
1111
print("Your password is",guess)

Image-watermarker/README.md

+98
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,98 @@
1+
# Watermarking Application
2+
3+
A Python-based watermarking application built using `CustomTkinter` and `PIL` that allows users to add text and logo watermarks to images. The application supports the customization of text, font, size, color, and the ability to drag and position the watermark on the image.
4+
5+
## Features
6+
7+
- **Text Watermark**: Add customizable text to your images.
8+
- Select font style, size, and color.
9+
- Drag and position the text watermark on the image.
10+
- **Logo Watermark**: Add a logo or image as a watermark.
11+
- Resize and position the logo watermark.
12+
- Supports various image formats (JPG, PNG, BMP).
13+
- **Mutual Exclusivity**: The application ensures that users can either add text or a logo as a watermark, not both simultaneously.
14+
- **Image Saving**: Save the watermarked image in PNG format with an option to choose the file name and location.
15+
16+
## Installation
17+
18+
### Prerequisites
19+
20+
- Python 3.6 or higher
21+
- `PIL` (Pillow)
22+
- `CustomTkinter`
23+
24+
### Installation Steps
25+
26+
1. **Clone the repository:**
27+
28+
```bash
29+
git clone https://github.com/jinku-06/Image-Watermarking-Desktop-app.git
30+
cd watermarking-app
31+
```
32+
33+
2. **Install the required packages:**
34+
35+
```bash
36+
pip install -r requirements.txt
37+
```
38+
39+
3. **Run the application:**
40+
41+
```bash
42+
python app.py
43+
```
44+
45+
## Usage
46+
47+
1. **Load an Image**: Start by loading an image onto the canvas.
48+
2. **Add Text Watermark**:
49+
- Input your desired text.
50+
- Customize the font style, size, and color.
51+
- Drag and position the text on the image.
52+
- Note: Adding a text watermark disables the option to add a logo.
53+
3. **Add Logo Watermark**:
54+
- Select and upload a logo or image to use as a watermark.
55+
- Resize and position the logo on the image.
56+
- Note: Adding a logo watermark disables the option to add text.
57+
4. **Save the Image**: Once satisfied with the watermark, save the image to your desired location.
58+
59+
## Project Structure
60+
61+
```bash
62+
watermarking-app/
63+
64+
├── fonts/ # Custom fonts directory
65+
├── app.py # Main application file
66+
├── watermark.py # Watermark functionality class
67+
├── requirements.txt # Required Python packages
68+
└── README.md # Project documentation
69+
```
70+
71+
## Sample and look
72+
73+
Below are some sample images showcasing the application work:
74+
75+
UI:
76+
77+
<img src="https://github.com/user-attachments/assets/637200b2-6b88-4135-81fd-3c909aafbc4c" width ="500" height="350" alt='Userinterface image'>
78+
79+
Text Watermark :
80+
81+
<img src="https://github.com/user-attachments/assets/096e2675-d528-4ef7-aa98-b8483fb1c883" width="300" height="350" alt="text watermark demo image">
82+
83+
Logo Watermark:
84+
85+
<img src="https://github.com/user-attachments/assets/536675ae-a165-49b7-8294-0b599faa58f6" width="300" height="350" alt="logo watermark demo image">
86+
87+
88+
89+
90+
91+
92+
93+
94+
95+
96+
97+
98+

0 commit comments

Comments
 (0)