https://github.com/evanwporter/julia-encryption-algorithm
Proof of concept code demonstrating how the Filled Julia Set can be used to encrypt images.
https://github.com/evanwporter/julia-encryption-algorithm
encryption-decryption image-encryption julia-sets
Last synced: 4 months ago
JSON representation
Proof of concept code demonstrating how the Filled Julia Set can be used to encrypt images.
- Host: GitHub
- URL: https://github.com/evanwporter/julia-encryption-algorithm
- Owner: evanwporter
- Created: 2024-05-21T18:37:46.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-05-22T16:32:24.000Z (about 1 year ago)
- Last Synced: 2024-05-22T17:45:41.169Z (about 1 year ago)
- Topics: encryption-decryption, image-encryption, julia-sets
- Language: Jupyter Notebook
- Homepage:
- Size: 1.5 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Julia Set Encryption Algorithm
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](https://github.com/evanwporter/Julia-Encryption-Algorithm/tree/main/jea). Two functions are inside: `encrypt` and `decrypt`.
### Encrypt
* 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 form `x + iy` where `x` and `y` 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.
### Decrypt* 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 form `x + iy`.
* Return
* Saves image to `image_path_decrypted.png`
## Example```
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)
```