-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun_encryption.py
More file actions
24 lines (16 loc) · 825 Bytes
/
Copy pathrun_encryption.py
File metadata and controls
24 lines (16 loc) · 825 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
from main import run_encryption
# ========== INPUTS ==========
# The message that needs to be encrypted
secret_message = '''You discover that home is not a person or a place
But a feeling you can't get back'''
# Full or relative path of the original image
original_imagePATH = 'image.jpg'
# Full or relative path of the image, in which the message is hidden
# Note that .jpg does not work as the path of the encrypted image
encrypted_imagePATH = 'encoded_image.png'
# The initial position of the color code that the encryption starts. Defaults to (0,0)
initial_colorCode = (0, 0)
# Each bit of the message is encrypted with a given step size. Defaults to 1
step_size = 1
# ========== RUNNING THE PROGRAM ==========
run_encryption(secret_message, original_imagePATH, encrypted_imagePATH, initial_colorCode, step_size)