Proof of concept for how the filled julia set can be used to encryt and decrypt images. The following image is an example of the encryption and decryption capabilities of the julia set.
To use this library, simply download the JEA folder. Two functions are inside: encrypt
and decrypt
.
- Parameters
image_path
: Path to the image that needs to be encrypted.c
: The key (ie: password) used to encrypt the image. This is a complex function of the formx + iy
wherex
andy
are real numbers.min_coordinate
: minimum x-y coordinate to generate the Julia set with.max_coordinate
: maximum x-y coordinate to generate the Julia set with.iterations_count
: max number of iterations to generate the Julia set with.threshold
: when the orbit of Q exceeds the threshold then its assumed that the orbit has escaped.
- Return
- Saves image to
image_path_encrypted.png
. The parameters used to generate the julia set are saved in the image file's metadata.
- Saves image to
- Parameters
image_path
: Path to the image that needs to be decrypted.c
: The key (ie: password) used to decrypt the image. This is a complex function of the formx + iy
.
- Return
- Saves image to
image_path_decrypted.png
- Saves image to
import jea
img_path = r"images\frog.jpg"
jea.encrypt(r"images\frog.jpg", 0.5 + 0.75j)
jea.decrypt(r"images\frog_encrypted.png", 0.5 + 0.75j)